import { WebSocketServer } from 'ws'; import type { Context } from '../types/Context.js'; export interface CloudpackServer extends Pick { /** Full server root URL, including protocol and port */ url: string; /** Close the server. Does nothing if called multiple times. */ close: () => Promise; } export declare const apiServerPort: number[]; /** * Creates a cloudpack server that can be used to communicate with the cloudpack client using trpc. */ export declare function createCloudpackServer(options: { /** Custom port(s) to try for the API server. */ port?: number | number[]; }, context: Context): Promise; //# sourceMappingURL=createCloudpackServer.d.ts.map