declare namespace java {
    namespace nio {
        namespace file {
            // @ts-ignore
            interface DirectoryStream {
                /**
                 * Returns the iterator associated with this {@code DirectoryStream}.
                 */
                // @ts-ignore
                 iterator(): java.util.Iterator;
            }
        }
    }
}
