///
import * as http from 'http';
import * as https from 'https';
import { IServiceConfig, ServiceDeps } from '../shared';
import { TeardownHandler } from '../shared/teardown';
import { getRegistry } from '../shared/sockets';
export declare function setupSockets(server: http.Server | https.Server, config: IServiceConfig, sharedDeps: ServiceDeps, deps?: {
getRegistry: typeof getRegistry;
}): Promise;