export type LocaleDir = 'ltr' | 'rtl'; export interface UseLocaleReturn { /** Current i18next language tag (e.g. `'en'`, `'ar'`, `'ja'`). */ locale: string; /** Reading direction for the current locale, derived from `i18n.dir(locale)`. */ dir: LocaleDir; /** Change the active i18next language. */ setLocale: (next: string) => Promise; } /** Read language and direction from the active I18nextProvider instance. * react-i18next subscribes to language changes and provider replacements. */ export declare function useLocale(): UseLocaleReturn; //# sourceMappingURL=use-locale.d.ts.map