import { LocalesValues } from "@intlayer/types/module_augmentation"; /** * Reads the locale persisted in the browser storage (cookie, localStorage…). * * Unlike `localeInStorage`, read on first call rather than at import, then * cached until the next `setLocaleInStorage`. Never cached on the server. */ export declare const getLocaleInStorage: () => import("@intlayer/types").Locale | undefined; /** * Get the locale cookie * * Read once at import time; marked pure so bundlers drop the read when nothing * imports it. */ export declare const localeInStorage: import("@intlayer/types").Locale; /** * @deprecated Use localeInStorage instead * * Get the locale cookie */ export declare const localeCookie: import("@intlayer/types").Locale; /** * Set the locale cookie */ export declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled?: boolean) => void; /** * @deprecated Use setLocaleInStorage instead * * Set the locale cookie */ export declare const setLocaleCookie: typeof setLocaleInStorage; /** * Hook that provides the locale cookie and a function to set it */ export declare const useLocaleStorage: (isCookieEnabled?: boolean) => { getLocale: () => import("@intlayer/types").Locale; setLocale: (locale: LocalesValues) => void; }; /** * @deprecated Use useLocaleStorage instead * * For GDPR compliance, use useLocaleStorage instead * * Hook that provides the locale cookie and a function to set it */ export declare const useLocaleCookie: typeof useLocaleStorage; //# sourceMappingURL=useLocaleStorage.d.ts.map