declare namespace java {
    namespace awt {
        namespace event {
            // @ts-ignore
            interface HierarchyBoundsListener {
                /**
                 * Called when an ancestor of the source is moved.
                 */
                // @ts-ignore
                 ancestorMoved(e: java.awt.event.HierarchyEvent): void;
                /**
                 * Called when an ancestor of the source is resized.
                 */
                // @ts-ignore
                 ancestorResized(e: java.awt.event.HierarchyEvent): void;
            }
        }
    }
}
