/** * When a delete's response is lost, the server may still be committing it: a * large workspace takes seconds, and a read during that transaction still sees * the workspace. Confirm over about half a minute before reporting failure. */ export declare const WORKSPACE_DELETION_CONFIRM_DELAYS_MS: readonly number[]; /** * Treat DELETE 404 as idempotent success. For an outcome-unknown mutation, * point-read the workspace until an authoritative missing result confirms the * delete or the confirmation window ends. A read that still finds the * workspace may be racing the delete's own commit, so it is retried too. * Definitive mutation failures are preserved without reconciliation, and the * original mutation error is reported if deletion is never confirmed. */ export declare function deleteWorkspaceWithReconciliation(input: { deleteWorkspace: () => Promise; readWorkspace: () => Promise; confirmDelaysMs?: readonly number[]; sleep?: (ms: number) => Promise; }): Promise; /** Reconcile organization-admin deletion through its content-blind overview. */ export declare function deleteOrganizationWorkspaceWithReconciliation(input: { client: { deleteOrganizationWorkspace: (organizationId: string, workspaceId: string) => Promise; getOrganizationAdministrationOverview: (organizationId: string) => Promise<{ workspaces: readonly { id: string; }[]; }>; }; organizationId: string; workspaceId: string; confirmDelaysMs?: readonly number[]; sleep?: (ms: number) => Promise; }): Promise<{ workspaces: readonly { id: string; }[]; } | null>; /** * Once deletion is authoritative, refresh and navigation are best-effort * follow-up work. Attempt both, but never turn their failure into a mutation * failure that invites the user to retry an already-committed deletion. */ export declare function completeWorkspaceDeletionFollowUp(input: { refreshAccess: () => Promise; navigate: () => Promise; }): Promise<{ status: "completed"; } | { status: "failed"; error: unknown; }>;