import { I18nConfigParams } from "gt-i18n/internal/types"; import { I18nConfig } from "gt-i18n/internal"; //#region src/setup/i18nConfig.d.ts /** * Helps us distinguish behavior for SPA vs server-rendered apps. * - server-rendered apps must use context * - SPA apps can synchronously access the locale */ type RenderStrategy = 'SPA' | 'server-render'; type CookieNameConfig = { localeCookieName?: string; regionCookieName?: string; enableI18nCookieName?: string; }; type ReactI18nConfigParams = I18nConfigParams & CookieNameConfig; declare class ReactI18nConfig extends I18nConfig { private renderStrategy; private localeCookieName; private regionCookieName; private enableI18nCookieName; constructor(params?: ReactI18nConfigParams, renderStrategy?: RenderStrategy); getRenderStrategy(): RenderStrategy; getLocaleCookieName(): string; getRegionCookieName(): string; getEnableI18nCookieName(): string; /** * Opt-in (`_tagIds`): whether `` output should carry its translation hash as * a `data-_gt-hash` attribute for tooling. Requires the literal `true`. */ isIdTaggingEnabled(): boolean; } declare function getI18nConfig(): ReactI18nConfig; declare function initializeI18nConfig(params?: ReactI18nConfigParams, renderStrategy?: RenderStrategy): ReactI18nConfig; //#endregion export { ReactI18nConfigParams, getI18nConfig, initializeI18nConfig }; //# sourceMappingURL=i18nConfig.d.ts.map