/// <reference types="node" />
import type { Socket } from "net";
import { CoCalcSocket } from "./enable-messaging-protocol";
export declare function unlockSocket(socket: Socket, token: string): Promise<void>;
export declare function connectToLockedSocket({ port, host, token, timeout, }: {
    port: number;
    host?: string;
    token: string;
    timeout?: number;
}): Promise<CoCalcSocket>;
