import type { I18nConfig, I18nInstance, InterpolationValues, TranslationMessages, Translations } from './types'; /** * Set the current locale */ export declare function setLocale(locale: string): void; /** * Get the current locale */ export declare function getLocale(): string; /** * Set the fallback locale */ export declare function setFallbackLocale(locale: string): void; /** * Get available locales */ export declare function getAvailableLocales(): string[]; /** * Add translations for a locale */ export declare function addTranslations(locale: string, messages: TranslationMessages): void; /** * Load translations (alias for addTranslations for multiple locales) */ export declare function loadTranslations(messages: Translations): void; /** * Check if a translation exists */ export declare function hasTranslation(key: string, locale?: string): boolean; /** * Translate a key */ export declare function t(key: string, values?: InterpolationValues, locale?: string): string; /** * Translate with pluralization */ export declare function tc(key: string, count: number, values?: InterpolationValues, locale?: string): string; /** * Check if translation exists */ export declare function te(key: string, locale?: string): boolean; /** * Get translation message object */ export declare function tm(key: string, locale?: string): TranslationMessages | string | undefined; /** * Create a new i18n instance */ export declare function createI18n(options?: Partial): I18n; /** * Use the i18n composable from an STX component. */ export declare function useI18n(options?: Partial): I18nInstance; /** * Configure the global i18n instance */ export declare function configure(options: Partial): void; /** * Alias for t() */ export declare const trans: unknown; /** * I18n class for creating isolated instances */ export declare class I18n implements I18nInstance { constructor(options?: Partial); get locale(): string; set locale(value: string); get fallbackLocale(): string; get availableLocales(): string[]; t: unknown; tc: unknown; te: unknown; tm: unknown; setLocale: unknown; addTranslations: unknown; d: unknown; n: unknown; }