import { TranslationDictionary, PartialTranslationDictionary } from './types'; export type { TranslationDictionary, PartialTranslationDictionary }; export declare const bundledLocales: Record; /** * Deep-merge a partial dictionary on top of a base dictionary. * Handles both standard domain objects and custom/arbitrary domains * added via the translation overrides panel. */ export declare function deepMerge(base: TranslationDictionary, override: PartialTranslationDictionary): TranslationDictionary; /** * Get the bundled dictionary for a locale, falling back to English. */ export declare function getBundledDictionary(locale: string): TranslationDictionary; /** * Create a `t()` function bound to a specific dictionary with English fallback. * * Resolution order: * 1. Direct dot-path lookup in the active dictionary * 2. If the key has no dots, scan all domains for a matching leaf * 3. Same two steps against the English fallback dictionary * 4. Return the raw key as-is */ export declare function createTFunction(dict: TranslationDictionary): (key: string, params?: Record) => string; /** * Resolve translation markers embedded in backend-supplied display text. * * If `text` matches `t('domain.key')`, `t("domain.key")`, or `$t:domain.key`, * the key is looked up via the provided `t` function. * Otherwise the original text is returned unchanged. * * Use this for any dynamic string coming from the backend (field titles, * display names, descriptions, etc.) that tenants may want to localize * via the SDK translation overrides. */ export declare function resolveDisplayText(text: string | undefined | null, t: (key: string, params?: Record) => string): string; //# sourceMappingURL=index.d.ts.map