import { type Snippet } from 'svelte'; import type { Locale } from '../i18n/types.js'; interface I18nProviderProps { /** * Active locale. The single request-scoped i18n value — provide it from * server-resolved state (cookie/Accept-Language via `resolveLocale`) so SSR * and hydration agree. May be a reactive (controlled) value; prop changes are * synced into the internal state. * @default 'en' */ locale?: Locale; /** * Locale used when a key is missing in the active locale. * @default 'en' */ fallbackLocale?: Locale; /** * Fired when the *effective* locale changes — both via `setLocale()` * (LocaleSwitcher, programmatic) and via a `locale`-prop change. The place to * persist the choice (e.g. write the locale cookie that `resolveLocale` reads * on the next request). */ onLocaleChange?: (locale: Locale) => void; children: Snippet; } declare const I18nProvider: import("svelte").Component; type I18nProvider = ReturnType; export default I18nProvider;