import { PersistentStore } from './types'; export declare const resetSubDomainCache: () => void; /** * Browsers don't offer a way to check if something is a public suffix * e.g. `.com.au`, `.io`, `.org.uk` * * But they do reject cookies set on public suffixes * Setting a cookie on `.co.uk` would mean it was sent for every `.co.uk` site visited * * So, we can use this to check if a domain is a public suffix * by trying to set a cookie on a subdomain of the provided hostname * until the browser accepts it * * inspired by https://github.com/AngusFu/browser-root-domain */ export declare function seekFirstNonPublicSubDomain(hostname: string, cookieJar?: Document | undefined): string; export declare function chooseCookieDomain(hostname: string, cross_subdomain: boolean | undefined): string; export declare const cookieStore: PersistentStore; export declare const localStore: PersistentStore; export declare const localPlusCookieStore: PersistentStore; export declare const memoryStore: PersistentStore; export declare const resetSessionStorageSupported: () => void; export declare const sessionStore: PersistentStore;