import type { AuthFlowParams } from './request-utils.js'; export interface PlatformRedirectOptions { baseUrl?: string | null; signInUrl?: string | null; code: string; state: string; params?: AuthFlowParams; defaultSource?: string; allowedRedirectOrigins?: string[]; } export interface PlatformEntryOptions { authUrl: string; params?: AuthFlowParams; defaultSource?: string; allowedRedirectOrigins?: string[]; } /** * Sanitizes redirect parameters to avoid open redirects. */ export declare function sanitizeRedirectParam(value: string | undefined, allowedRedirectOrigins: string[] | undefined): string | undefined; /** * Builds a Platform redirect URL with code/state and safe params. */ export declare function buildPlatformRedirectUrl(options: PlatformRedirectOptions): URL | null; /** * Builds a Platform entry URL (sign-in or sign-up) with safe params. */ export declare function buildPlatformEntryUrl(options: PlatformEntryOptions): URL; //# sourceMappingURL=platform-redirect-builder.d.ts.map