/** * Applies a document-wide no-referrer policy until every active caller restores it. */ export declare function suppressReferrer(): () => void; /** * Every parameter an auth callback can carry, stripped from the address bar * once it has been read. * * One list, because two call sites strip these and the copy that omitted * `refresh_token` left it sitting in the URL, the session history and the next * request's `Referer`. Anything the callback can carry belongs here, whether or * not the stripping site happens to read it. */ export declare const CALLBACK_URL_PARAMS: readonly ["openfortAuthProvider", "openfortAuthProviderUI", "openfortEmailVerificationUI", "openfortForgotPasswordUI", "access_token", "refresh_token", "user_id", "player_id", "state", "email", "error"]; /** Removes every callback parameter from `url`, in place. */ export declare function stripCallbackParams(url: URL): void; /** * Parses callback URLs that contain a second query delimiter, such as * `https://example.com/callback?existing=1?access_token=xxx&user_id=yyy`. * * Only the part before the fragment is repaired. A hash router puts its own * `?` inside the fragment (`#/dashboard?tab=1`), and rewriting that one to `&` * corrupts the host application's route — which then gets written back to the * address bar by the `replaceState` that follows. */ export declare function parseCallbackUrl(href: string): URL; /** True when `value` parses as an https URL, so it is safe to put in an `href`. */ export declare function isHttpsUrl(value: string): boolean; /** * Returns a URL a bearer credential may be sent to, or throws. * * The encryption-session endpoint receives the user's access token in an * `Authorization` header. Over plain http that token crosses the network in * clear text, so only https is accepted — except on loopback, which local * development backends use. */ export declare function assertCredentialedEndpoint(value: string): string; export declare function assertNavigableRedirect(value: string): string;