import type { Ref } from 'vue'; /** * The two cookies the UI preferences live in, owned by `@vuecs/locale` and * `@vuecs/design`. Spelled once here because three things read them: the refs * below, and `buildAuthorizeURL`, which defaults the `ui_locales` / * `ui_color_mode` hints from them. */ export declare const LOCALE_COOKIE = "vc-locale"; export declare const COLOR_MODE_COOKIE = "vc-color-mode"; /** * What each cookie holds while the visitor has chosen nothing: neither * switcher writes these, so a stored one means an explicit choice. */ export declare const LOCALE_UNSET = "auto"; export declare const COLOR_MODE_UNSET = "system"; export declare function readCookie(name: string): string | undefined; /** * Cookie-backed ref for non-Nuxt consumers, the counterpart of * `useCookie()` in client-admin-console. Client-side writes persist back * to the cookie; server-side there is no `document`, so the caller seeds * the value through `initial` (the auth console reads the cookie in * `renderAuthConsolePage` and hands it over via the hydration payload). */ /** * The visitor's stored choice, or nothing when they have made none. The * no-choice sentinel is not a value worth carrying anywhere: the authup pages * resolve it from the same browser this one is running in, so it would say * nothing they do not already know. */ export declare function readPreferenceCookie(name: string, unset: string): string | undefined; export declare function createCookieRef(name: string, initial?: string, fallback?: string): Ref; //# sourceMappingURL=cookie.d.ts.map