import http from 'http'; import { Server, ServerOptions } from 'socket.io'; import { Application } from '@feathersjs/feathers'; declare module '@feathersjs/feathers/lib/declarations' { interface Application { io: any; listen(options: any): Promise; } } declare function configureSocketio(callback?: (io: Server) => void): (app: Application) => void; declare function configureSocketio(options: number | Partial, callback?: (io: Server) => void): (app: Application) => void; declare function configureSocketio(port: number, options?: Partial, callback?: (io: Server) => void): (app: Application) => void; export = configureSocketio;