import { i18n } from 'i18next'; export declare const I18N_NAMESPACE = "annotator"; /** Subscribe to i18n readiness / language changes. Returns an unsubscribe fn. */ export declare function onI18nChange(cb: () => void): () => void; export interface InitI18nOptions { locale?: string; /** * Optional HttpBackend load path (e.g. a CDN URL with `{{lng}}`/`{{ns}}`). * When omitted, no network backend is used — components render with their * inline English defaults, and translations can be supplied via * `addTranslations()`. */ loadPath?: string; } /** * Module-level singleton i18next instance shared by all `` * elements on the page (mirrors the sibling uploader / asset-picker setup). */ export declare function initI18n(opts?: InitI18nOptions): Promise<{ i18n: i18n; isNew: boolean; }>; /** Add an in-memory translation bundle (alternative to a network backend). */ export declare function addTranslations(locale: string, resources: Record): void; export declare function getI18nInstance(): i18n | null; //# sourceMappingURL=i18n.d.ts.map