UNPKG

@hhgtech/hhg-components

Version:
18 lines (17 loc) 721 B
import React from 'react'; import { LOCALE } from "../types"; export type FormatMessageFunction = (descriptor: { id?: string; description?: string; defaultMessage?: string; }, values?: Record<string, unknown>, opts?: Record<string, unknown>) => string; export type LeadGenTranslationProps = { locale?: LOCALE; formatMessage?: FormatMessageFunction; children: React.ReactNode; }; export declare const LeadGenTranslationProvider: ({ locale, formatMessage, children, }: LeadGenTranslationProps) => React.JSX.Element; export declare const useLeadGenTranslations: () => { t: (key: string, options?: Record<string, unknown>) => string; locale: import("../types").LocaleType; };