import { type HostOutcome } from "./host-outcome.ts";
import type { RpcClient, RpcTransportGoneError } from "./rpc-client.ts";
export interface HostSessionWait {
    readonly until: "idle" | "done";
    readonly timeoutMs: number;
}
type TransportLossHandler = ((error: RpcTransportGoneError) => void) | undefined;
export declare function waitForHostSession(client: RpcClient, sessionId: string | undefined, request: HostSessionWait, onTransportLoss: (handler: TransportLossHandler) => void): Promise<HostOutcome>;
export {};
//# sourceMappingURL=host-session-wait.d.ts.map