/** * Cross-Domain Authentication * * Shared logic for exchanging cross-domain tokens for session tokens. * Used across all CREATE SOMETHING properties (.agency, .io, .ltd, .space). * * Canon: DRY principle - single source of truth for cross-domain authentication. * * @packageDocumentation */ import type { Cookies } from '@sveltejs/kit'; export interface CrossDomainExchangeParams { token: string; cookies: Cookies; domain: string; isProduction: boolean; propertyLabel: string; redirectTo?: string; } /** * Exchange a cross-domain token for session tokens * * @param params - Exchange parameters * @throws {Response} - Redirects to login on error or to destination on success */ export declare function exchangeCrossDomainToken(params: CrossDomainExchangeParams): Promise;