import { type RpcClient } from "./rpc-client.ts";
export declare const DETACH_ACK_TIMEOUT_MS = 5000;
/**
 * Before a short-lived `senpi host session` client closes, ask the host to drop its attachments and wait for
 * the answer, so the session no longer counts this client once the command returns (senpi#3238). An older
 * host without `detach_connection` keeps today's release on socket close. A host that does not answer within
 * the bound is reported in one plain line and the connection is closed anyway; the command's own outcome stands.
 */
export declare function detachBeforeClose(client: RpcClient, report: (line: string) => void, timeoutMs?: number): Promise<void>;
//# sourceMappingURL=host-session-detach.d.ts.map