declare namespace java {
    namespace net {
        // @ts-ignore
        interface SocketImplFactory {
            /**
             * Creates a new {@code SocketImpl} instance.
             */
            // @ts-ignore
             createSocketImpl(): java.net.SocketImpl;
        }
    }
}
