import type { AuthSession } from './types.ts'; /** Fragment key the server's redirect completion writes: `#imaps_auth=`. */ export declare const FRAGMENT_KEY = "imaps_auth"; /** Parse a session out of a location hash. `null` when absent or malformed. */ export declare function parseSessionFragment(hash: string, now?: number): AuthSession | null; /** * Read the session the server sent back in the URL fragment after a redirect * sign-in, and scrub it from the address bar and history so the token does * not linger in a bookmark, a screenshot or a shared link. Other fragment * parameters are kept. */ export declare function consumeRedirectResult(now?: number): AuthSession | null; /** The current page URL without any fragment — where a redirect sign-in should come back to. */ export declare function currentReturnTo(): string | undefined; //# sourceMappingURL=redirect.d.ts.map