type Session = { id: string; exp: number; }; export declare function getSession(params?: { path?: string; useCookie?: boolean; key?: string; }): Session | null; export declare function setSession(params: { id: string; expireTimeInMinutes: number; path?: string; useCookie?: boolean; key?: string; }): Session; export declare function refreshSession(params: { expireTimeInMinutes: number; path?: string; useCookie?: boolean; key?: string; }): Session | null; /** * Drops the session once the browser actually leaves the page. Deleting it before the * navigation commits leaves a still interactive form without a session (slow or blocked * redirects, e.g. in-app browsers), so a second attempt would be rejected. */ export declare function deleteSessionOnPageHide(params?: { path?: string; useCookie?: boolean; key?: string; }): void; export declare function deleteSession(params?: { path?: string; useCookie?: boolean; key?: string; }): void; export {};