import type { ReactNode } from "react"; import type { LanguageTranslations } from "../../hooks/useTranslation"; type TranslationProviderProps = { locale: L; translations: LanguageTranslations; fallbackLocale?: L; children: ReactNode; }; type TranslationContextType = { t: (key: string, values?: Record) => string; intl: import("@formatjs/intl").IntlShape; locale: string; setLocale: (locale: string) => void; error: string | null; }; export type { TranslationProviderProps, TranslationContextType };