import { I18nStore } from "../i18n-store/I18nStore.js"; import { OnMissingDictionaryEntry, OnMissingDictionaryObj, OnMissingTranslation } from "../hooks/utils/missing-translation.js"; import { ReactNode } from "react"; import { Dictionary, Translation } from "gt-i18n/types"; import { Hash, Locale } from "gt-i18n/internal/types"; import * as _$react_jsx_runtime0 from "react/jsx-runtime"; //#region src/context/InternalGTProvider.d.ts type InternalGTProviderProps = { children?: ReactNode; translations: Record>; dictionaries?: Record; locale: string; region: string | undefined; enableI18n: boolean; setLocale: (locale: string) => void; setRegion: (region: string | undefined) => void; setEnableI18n: (enabled: boolean) => void; i18nStore: I18nStore; onMissingTranslation?: OnMissingTranslation; onMissingDictionaryEntry?: OnMissingDictionaryEntry; onMissingDictionaryObj?: OnMissingDictionaryObj; }; /** * - Shared provider logic btwn client and server providers * - This is not userfacing, it should be wrapped in a userfacing provider with runtime-specific logic * - Locale and translations (and dictionaries if applicable) are required * * TODO: selectively filter to only pass new translations to client for dev hot reload * TODO: rename parent directory to "/provider" (separate PR) */ declare function InternalGTProvider({ children, translations, dictionaries, locale, region, enableI18n, setLocale, setRegion, setEnableI18n, i18nStore, onMissingTranslation, onMissingDictionaryEntry, onMissingDictionaryObj }: InternalGTProviderProps): _$react_jsx_runtime0.JSX.Element; //#endregion export { InternalGTProvider, InternalGTProviderProps }; //# sourceMappingURL=InternalGTProvider.d.ts.map