import type { MiddlewareConfig } from '../../middleware-dir/types'; export type HeadersAndCookies = { localeHeaderName?: string; localeCookieName?: string; enableI18nCookieName?: string; referrerLocaleCookieName?: string; localeRoutingEnabledCookieName?: string; resetLocaleCookieName?: string; }; export type CompilerOptions = { /** * Which compiler plugin to use: babel, swc, or none * @default 'none' */ type: 'babel' | 'swc' | 'none'; /** * Log level for the compiler plugin. * @default 'warn' */ logLevel?: 'silent' | 'error' | 'warn' | 'info' | 'debug'; /** * Whether to compile the translations at build time. * @default true */ compileTimeHash?: boolean; /** * Whether to disable build checks. * @default false */ disableBuildChecks?: boolean; /** * Whether to automatically wrap translatable JSX. * @default false */ enableAutoJsxInjection?: boolean; }; export type RenderMethod = 'skeleton' | 'replace' | 'default'; export declare const REQUEST_FUNCTION_TO_CONFIG_KEY: { readonly getLocale: "getLocalePath"; readonly getRegion: "getRegionPath"; }; export type BaseWithGTConfigProps = MiddlewareConfig & { [key: string]: unknown; dictionary?: string; config?: string; loadTranslationsPath?: string; loadDictionaryPath?: string; runtimeUrl?: string | null; cacheUrl?: string | null; cacheExpiryTime?: number; locales?: string[]; defaultLocale?: string; ignoreBrowserLocales?: boolean; disableInvalidLocaleWarning?: boolean; /** Regular expression source that limits i18n middleware routing by pathname, written for paths without the locale prefix. ``, `useLocalizeHref()` and `getLocalizeHref()` leave non-matching paths unprefixed. */ pathRegex?: string; renderSettings?: { method: RenderMethod; timeout?: number; }; maxConcurrentRequests?: number; maxBatchSize?: number; batchInterval?: number; description?: string; eslint?: boolean; eslintSeverity?: 'error' | 'warn'; overwriteESLintConfig?: boolean; experimentalCompilerOptions?: CompilerOptions; headersAndCookies?: HeadersAndCookies; _usingPlugin?: boolean; /** * Opt-in id-tagging (off by default): exposes each ``'s translation hash as * a `data-_gt-hash` attribute for tooling (localized replay, in-context QA). * Must be the literal `true` to enable — see `isIdTaggingEnabled`. ⚠️ Enabling * injects a `display:contents` `` around any `` that renders bare text * or a fragment (elements are annotated in place, no wrapper). */ _tagIds?: boolean; getLocalePath?: string; getRegionPath?: string; }; export type withGTConfigProps = BaseWithGTConfigProps & { /** Use GT_API_KEY instead. */ apiKey?: never; /** Use GT_API_KEY instead. */ devApiKey?: never; /** Use GT_PROJECT_ID instead. */ projectId?: never; }; //# sourceMappingURL=withGTConfigProps.d.ts.map