import type { HttpRequest, HttpResponse } from 'warpsocket'; /** @internal Used by the dashboard module to introspect the user's API. */ export declare function getMainApi(): object | undefined; export declare const socketProxies: Map>; export interface Request { socketId: number; requestId: number; token: Uint8Array; } export declare function handleOpen(socketId: number, ip: string): void; /** @internal Used by the dashboard module to authenticate requests. */ export declare function getPassword(): string; export declare function handleStart(arg: any): Promise; export declare function handleHttpRequest(req: HttpRequest, res: HttpResponse): Promise; export declare function handleBinaryMessage(message: Uint8Array, socketId: number): Promise; export declare function handleClose(socketId: number): Promise; //# sourceMappingURL=wshandler.d.ts.map