/** * Onboarding error helpers. * * Zero-config agent onboarding (`addVibecontrolsAgentFromTunnel`) runs a tunnel * probe + OAuth setup synchronously. On a very cold Cloudflare quick tunnel that * work can outlive the gateway's per-operation timeout (the be-sdk * `OPERATION_TIMEOUT` load-shedding plugin, default `OPERATION_TIMEOUT_MS`), * which surfaces to Apollo as a GraphQL error even though the agent keeps * provisioning in the background and comes online on its own. * * `isOnboardingTimeout` detects that specific case so the UI can show a friendly * "still setting up — check back shortly" message instead of a hard failure. * (BOFF-6303) */ /** * True when `err` is — or wraps, at any reasonable nesting depth — the * gateway's operation-timeout error, identified by the structured * `OPERATION_TIMEOUT` **code** (the be-sdk load-shedding plugin sets it on * `extensions.code`). Walks the common Apollo error shapes * (`CombinedGraphQLErrors`, `graphQLErrors[]`, `networkError`, `cause`). * * Matches on the code ONLY, never on a "timed out" *message*: a zero-config * onboarding payload can surface `success: false` with an `error` like * "probe failed: operation timed out" — that is a real failure with no * guaranteed background completion, so it must NOT be treated as "still * provisioning". Only the gateway's own operation timeout (which does complete * in the background) carries the `OPERATION_TIMEOUT` code. */ export declare function isOnboardingTimeout(err: unknown): boolean;