export declare class BridgeOutboundError extends Error { constructor(message: string); } export interface StartOutboundInput { peerId: string; agent: string; prompt: string; idempotencyKey: string; correlationId?: string; timeoutMs?: number; } export interface OutboundRunHandle { jobId: number; runId: string | null; remoteJobId: number | null; status: string; } /** Create the local job, then POST. The same idempotency key never creates a second row. */ export declare function startOutboundRun(input: StartOutboundInput): Promise; /** One poll pass. GET is the terminal authority. Safe to call from tests. */ export declare function pollOutboundRuns(): Promise; /** * Caller callback endpoint. 401 when Authorization Bearer does not match * the key configured for that peer. Terminal state is copied from GET, * not from the event body. Returns 204 when the notice is accepted, * including duplicates. */ export declare function applyOutboundCallback(rawBody: string, headers: Record): Promise<204 | 401 | 500>; export declare function startOutboundPoller(): void; export declare function stopOutboundPollerForTests(): void; //# sourceMappingURL=bridge-outbound.d.ts.map