import { CookieAttributes } from 'js-cookie'; export declare type SessionOptions = { cookie_defaults?: CookieAttributes; }; export declare function hostName(domain: string | undefined): string; declare function sessionId(): Session | undefined; export interface Session { id: string; lastTouched: number; } /** * Initialize a session if one doesn't exist, or return the existing session * if it hasn't expired or exceeded the TTL. * @returns the current session */ declare function fetch(options?: SessionOptions): Session; declare function init(options?: SessionOptions): Session; declare function reset(options?: SessionOptions): Session; declare function clear(): void; export declare const session: { init: typeof init; fetch: typeof fetch; reset: typeof reset; sessionId: typeof sessionId; clear: typeof clear; }; export {};