//#region src/lib/hexclave-app/apps/implementations/redirect-back-state.d.ts type PersistedRedirectBackState = { /** * The `after_auth_return_to` value exactly as it appeared in the URL (possibly relative). * sessionStorage is per-origin, so restoring it into a URL later always resolves it against the * same origin it was saved from. */ afterAuthReturnTo: string; crossDomainState: string | null; crossDomainCodeChallenge: string | null; crossDomainAfterCallbackRedirectUrl: string | null; /** Wall-clock ms (Date.now()); must survive page loads, so performance.now() is not usable. */ savedAtMillis: number; }; /** * Mirrors the redirect-back state from the given URL into sessionStorage, if it has any. Called * with the page URL at app construction time (full page loads) and with the target URL of every * SDK-driven redirect (client-side navigations, which don't re-run the constructor). */ declare function saveRedirectBackStateFromUrl(options: { url: URL; projectId: string; }): void; declare function readRedirectBackState(options: { projectId: string; }): PersistedRedirectBackState | null; /** * Returns the raw return target carried by the current auth flow. The value is intentionally not * described as trusted: callers must still pass it through the normal redirect validation before * navigating to it. * * An explicit query parameter wins even when it is empty. This prevents a malformed URL from * silently reviving an older flow from sessionStorage. */ declare function getRawAfterAuthReturnTo(options: { currentUrl: URL; projectId: string; }): string | null; /** * Returns a copy of `currentUrl` with any redirect-back query params that were dropped along the * way restored from the sessionStorage mirror. If `currentUrl` already carries * `after_auth_return_to`, it is returned unchanged — explicit query params always win. */ declare function augmentUrlWithPersistedRedirectBackState(options: { currentUrl: URL; projectId: string; }): URL; //#endregion export { PersistedRedirectBackState, augmentUrlWithPersistedRedirectBackState, getRawAfterAuthReturnTo, readRedirectBackState, saveRedirectBackStateFromUrl }; //# sourceMappingURL=redirect-back-state.d.ts.map