declare namespace java {
    namespace util {
        // @ts-ignore
        interface Enumeration {
            /**
             * Tests if this enumeration contains more elements.
             */
            // @ts-ignore
             hasMoreElements(): boolean;
            /**
             * Returns the next element of this enumeration if this enumeration
             * object has at least one more element to provide.
             */
            // @ts-ignore
             nextElement(): java.lang.Object;
        }
    }
}
