export type BootstrapErrorContext = "client_configuration" | "workspace_access"; export type BootstrapErrorPresentation = Readonly<{ title: string; description: string; /** * Startup is still retrying by itself (an update or a dropped connection): * show a calm waiting state with retry as a secondary action. */ recovering?: true | undefined; }>; /** * Only transient bootstrap reads qualify; presentation copy is not retry * authority. The maintenance marker is transient: the deployment is updating * and answers again on its own. */ export declare function isTransientBootstrapError(error: unknown, context: BootstrapErrorContext): boolean; /** Startup is waiting for the API and will continue by itself. */ export type BootstrapWaitingPresentation = BootstrapErrorPresentation & Readonly<{ recovering: true; }>; /** * How long an ordinary transient failure reads as "reconnecting" before * startup names the problem (it still reconnects by itself after that). */ export declare const BOOTSTRAP_CALM_WINDOW_MS = 120000; /** * The calm state shown while startup keeps retrying a transient failure: an * update (the maintenance marker) for as long as it lasts, any other transient * failure for the calm window, then the named problem, still retrying. */ export declare function bootstrapWaitingPresentation(error: unknown, context: BootstrapErrorContext, elapsedMs: number): BootstrapWaitingPresentation; /** * Bootstrap failures replace the whole application surface, so they should * explain the recovery path without exposing API JSON, proxy HTML, or internal * configuration details as page copy. */ export declare function bootstrapErrorPresentation(error: unknown, context: BootstrapErrorContext): BootstrapErrorPresentation;