export declare const COOKIE_ACCESS_DELAY = 1000; export interface CookieOptions { secure?: boolean; crossSite?: boolean; domain?: string; } export interface CookieCache { get: () => string | undefined; set: (value: string, expireDelay: number) => void; } export declare function cacheCookieAccess(name: string, options: CookieOptions): CookieCache; export declare function setCookie(name: string, value: string, expireDelay: number, options?: CookieOptions): void; export declare function getCookie(name: string): string | undefined; export declare function areCookiesAuthorized(options: CookieOptions): boolean; /** * No API to retrieve it, number of levels for subdomain and suffix are unknown * strategy: find the minimal domain on which cookies are allowed to be set * https://web.dev/same-site-same-origin/#site */ export declare function getCurrentSite(): string | undefined;