import { Params, Translation, TranslationKey, Translations } from '@i18n-micro/types'; type LocaleCode = string; interface Locale { code: LocaleCode; disabled?: boolean; iso?: string; dir?: 'ltr' | 'rtl' | 'auto'; displayName?: string; baseUrl?: string; baseDefault?: boolean; } export type Getter = (key: TranslationKey, params?: Record, defaultValue?: string) => unknown; export declare function t(key: TranslationKey, params?: Params, defaultValue?: string): Translation; export declare function tc(key: TranslationKey, params: number | Params, defaultValue?: string): string; export declare function setTranslationsFromJson(locale: string, translations: Record): Promise; export declare const getLocale: () => string; export declare const setLocale: (val: string) => string; export declare const getLocaleName: () => string | null; export declare const setLocaleName: (val: string | null) => string | null; export declare const getLocales: () => Locale[]; export declare const setLocales: (val: Locale[]) => Locale[]; export declare const defaultLocale: () => string | undefined; export declare const setDefaultLocale: (val: string | undefined) => string | undefined; export declare const getRouteName: (_route?: unknown, _locale?: string) => string; export declare const settRouteName: (val: string) => string; export declare const ts: (key: TranslationKey, params?: Params, defaultValue?: string) => string; export declare const tn: (value: number, options?: Intl.NumberFormatOptions) => string; export declare const td: (value: Date | number | string, options?: Intl.DateTimeFormatOptions) => string; export declare const has: (key: TranslationKey) => boolean; export declare const mergeTranslations: (newTranslations: Translations) => void; export declare const switchLocaleRoute: (val: string) => string; export declare const switchLocalePath: (val: string) => string; export declare const switchLocale: (val: string) => string; export declare const switchRoute: (_route: unknown, _toLocale?: string) => void; export declare const localeRoute: (_to: unknown, _locale?: string) => void; export declare const localePath: (_to: unknown, _locale?: string) => string; export declare const setI18nRouteParams: (_value: unknown) => void; export declare const i18nUtils: { t: typeof t; tc: typeof tc; setTranslationsFromJson: typeof setTranslationsFromJson; getLocale: () => string; setLocale: (val: string) => string; getLocaleName: () => string | null; setLocaleName: (val: string | null) => string | null; getLocales: () => Locale[]; setLocales: (val: Locale[]) => Locale[]; defaultLocale: () => string | undefined; setDefaultLocale: (val: string | undefined) => string | undefined; getRouteName: (_route?: unknown, _locale?: string) => string; settRouteName: (val: string) => string; ts: (key: TranslationKey, params?: Params, defaultValue?: string) => string; tn: (value: number, options?: Intl.NumberFormatOptions) => string; td: (value: Date | number | string, options?: Intl.DateTimeFormatOptions) => string; has: (key: TranslationKey) => boolean; mergeTranslations: (newTranslations: Translations) => void; switchLocaleRoute: (val: string) => string; switchLocalePath: (val: string) => string; switchLocale: (val: string) => string; switchRoute: (_route: unknown, _toLocale?: string) => void; localeRoute: (_to: unknown, _locale?: string) => void; localePath: (_to: unknown, _locale?: string) => string; setI18nRouteParams: (_value: unknown) => void; }; export {};