import type { CallDetail, TranscriptEntry } from "../types/api.js"; /** * Poll a call until it completes. * * One implementation, two callers: `bland call send --wait` (which prints new * transcript lines as they land) and the MCP `bland_call_send` tool with * `wait: true` (which prints nothing — stdout is the JSON-RPC stream — and just * returns the final call detail). */ export interface WaitForCallOptions { /** Poll interval in ms (default: 2000). */ pollMs?: number; /** Give up after this many ms. Default: poll until the call completes. */ timeoutMs?: number; /** Called with each batch of newly-arrived transcript entries. */ onTranscript?: (entries: TranscriptEntry[]) => void; } export interface WaitForCallResult { /** Last successfully fetched detail — undefined only if every poll errored. */ detail?: CallDetail; /** false means we hit timeoutMs while the call was still running. */ completed: boolean; } export declare function waitForCallCompletion(callId: string, options?: WaitForCallOptions): Promise; //# sourceMappingURL=callWait.d.ts.map