import { Translations } from './types'; export interface I18nStoreState { locale: string; defaultLocale: string; translations: Translations; } export type I18nStoreCallback = (opts: I18nStoreState) => void; declare class I18nStore { private listeners; private translations; private locale; private defaultLocale; constructor({ translations, locale, defaultLocale }: I18nStoreState); setLocale: (locale: string) => void; setTranslations: (translations: Translations) => void; triggerUpdate: () => void; getState: () => I18nStoreState; subscribe: (cb: I18nStoreCallback) => () => void; unsubscribe: (cb: I18nStoreCallback) => void; } export { I18nStore }; //# sourceMappingURL=store.d.ts.map