import type { LogoutOutcome } from '@pantheon-systems/css-client'; export type { LogoutOutcome }; export interface PerformLogoutConfig { /** * Base URL of the API. Defaults to the production backend when unset or * blank — brokerLogout (from @pantheon-systems/css-client) owns that * fallback, so it's applied consistently for every caller, not just this * function. */ cssBaseUrl?: string; siteApiToken?: string; /** * The puck-css token key, matching P1AuthProvider's `tokenStorageKey` prop. * Not the broker JWT key — css-client owns that one and resolves it itself. */ tokenStorageKey?: string; } /** * Canonical logout for P1 broker-mode apps. Owns the full sequence: * 1. POST to the backend to obtain the Auth0 logout URL (token still present). * 2. On success: clear broker token (inside brokerLogout) and puck-css keys. * 3. Return the outcome — caller navigates on `signed_out`. * * On `error`, credentials are left intact so the caller can retry or fall back. * Puck-css keys are cleared on `no_session` too — the broker session is gone, * so local state should match. */ export declare function performLogout(config: PerformLogoutConfig): Promise;