import { type KeyObject } from "node:crypto"; import { SetupFlowError } from "./handoff-deadline.js"; export { SetupFlowError } from "./handoff-deadline.js"; export declare const DEFAULT_IDP_BASE_URL = "https://preview.masons.ai"; export declare const HANDOFF_TIMEOUT_MS: number; export interface BridgeHandoffResult { token: string; agent: { agentId: string; handle: string; name: string; }; } export interface BridgeHandoffSession { sessionId: string; handoffUrl: string; apiBase: string; privateKey: KeyObject; expiresAt: number; } export interface BeginBridgeHandoffOptions { apiHost: string; idpBaseUrl: string; idpBaseUrlIsDefault?: boolean; runtimeKey?: string; } export declare function beginBridgeHandoff(options: BeginBridgeHandoffOptions): Promise; export declare function completeBridgeHandoff(session: BridgeHandoffSession): Promise; export type BridgeCollection = { outcome: "pending"; } | { outcome: "gone"; } | { outcome: "delivered"; handoff: BridgeHandoffResult; } | { outcome: "spoiled"; error: SetupFlowError; }; export declare function collectBridgeHandoffOnce(session: BridgeHandoffSession): Promise; //# sourceMappingURL=handoff.d.ts.map