/** * Backward-compat bridge + full override channel for host-supplied strings. * * `config.translations` accepts either style of key (they can be mixed): * * 1. **Native dot-keys** (preferred, full coverage) — any key containing a `.` * is passed straight through to i18next, e.g. `{ 'action.comment': 'Send' }`. * Use {@link NATIVE_KEYS} as the canonical list of every string the widget * renders, so a host (e.g. Hub) can translate *all* text. * 2. **Legacy flat keys** — the old `react-filerobot-media-annotator` camelCase * keys (e.g. `annotatingFieldHint`). These are remapped via * {@link LEGACY_KEY_MAP}. Unknown flat keys are silently ignored. */ /** Legacy flat key (old annotator) → new namespaced i18n dot-key. */ export declare const LEGACY_KEY_MAP: Record; /** * Canonical list of every native i18n key the widget renders. Keep in sync with * the `t('…')` calls across the components — a host can supply a value for each * to fully localise the UI. */ export declare const NATIVE_KEYS: readonly string[]; /** * Register host-supplied translations with the shared i18next instance for the * given locale. Accepts native keys (pass-through) and legacy flat keys * (remapped). Unknown flat keys are ignored. * * "Native" can't be inferred from a dot alone: several native keys are dot-less * (`size`, `opacity`, `color`, `undo`, `redo`, `fit`, `zoomIn`, …). So a key is * treated as native when it contains a dot OR is listed in {@link NATIVE_KEYS}; * only true legacy keys are remapped. */ export declare function applyLegacyTranslations(locale: string, translations: Record): void; //# sourceMappingURL=legacy-compat.d.ts.map