/// <reference types="node" />
import { Server as WsServer } from 'ws';
export type ServerOptions = {
    port?: number;
    singleton?: boolean;
    portResolutionMode?: 'next' | 'random' | 'lazy';
    debug?: boolean;
    key?: string | Buffer;
    cert?: string | Buffer;
};
export declare function makeServer(options?: ServerOptions): Promise<{
    server?: WsServer;
    port: number;
}>;
