import { ErrorLogger, FormatMessageOptions, Locale, Translator } from '@eo-locale/core'; import { FunctionalComponent } from 'preact'; export interface TranslationsContextProps { language: string; locales: Locale[]; translator: Translator; setLanguage(language: string): void; } export declare const TranslationsContext: import("preact").Context; export interface TranslationsProviderProps { language: string; locales: Locale[]; onError?: ErrorLogger; } export declare const TranslationsProvider: FunctionalComponent; export declare function useTranslator(language?: string): Translator; export interface DateTimeProps extends Intl.DateTimeFormatOptions { value: Date; language?: string; } export declare const DateTime: FunctionalComponent; export interface NumericProps extends Intl.NumberFormatOptions { value: number; language?: string; } export declare const Numeric: FunctionalComponent; export interface TextProps extends FormatMessageOptions { id: string; tagName?: string; html?: boolean; } export declare const Text: FunctionalComponent;