import { FC, PropsWithChildren } from 'react'; import { LocalizedComponentName, TranslationFunction } from './useLocalizedStringFormatter'; type ComponentTranslationDictionary = Record>; export interface Translations { [locale: string]: ComponentTranslationDictionary | undefined; "de-DE"?: ComponentTranslationDictionary; "en-US"?: ComponentTranslationDictionary; } export interface TranslationContext { translations?: Translations; translate?: TranslationFunction; } export type TranslationProviderProps = PropsWithChildren & TranslationContext; export declare const useTranslationProvider: () => TranslationContext; /** @flr-generate all */ export declare const TranslationProvider: FC; export default TranslationProvider;