import * as react from 'react'; import { ReactElement } from 'react'; type SimpleArgType = string | number; type ArgType = ReactElement | SimpleArgType; type FormatReturnType = T[number] extends SimpleArgType ? string : ReactElement; declare function format(translation: string, ...args: T): FormatReturnType; declare const I18n: { getText: >)[]>(key: string, ...args: T) => T[number] extends string | number ? string : react.ReactElement>; }; export { I18n, format };