import type { ConnectAttempt, ConnectTransport } from "./types.js"; export declare class ConnectWaitTimedOutError extends Error { constructor(); } /** Read-only continuation. The backend remains authoritative for expiry and * completion; redirects and popup messages are never completion evidence. * * Without an explicit `timeoutMs`, polling lasts as long as the attempt itself * (its `expiresAt`, plus a grace period), because a sign-in can take the * person several minutes, for example in a system browser opened by a * desktop app. The backend reports the attempt as expired once it is. */ export declare function pollConnectAttempt(transport: Pick, workspaceId: string, attemptId: string, options?: { signal?: AbortSignal; timeoutMs?: number; minimumRevision?: number; /** The attempt's own expiry, used as the deadline when no timeoutMs is given. */ expiresAt?: string; }): Promise;