declare namespace java {
    namespace net {
        // @ts-ignore
        interface DatagramSocketImplFactory {
            /**
             * Creates a new {@code DatagramSocketImpl} instance.
             */
            // @ts-ignore
             createDatagramSocketImpl(): java.net.DatagramSocketImpl;
        }
    }
}
