import { ResolvedIntlConfig as CoreResolvedIntlConfig, Formatters, IntlFormatters, MessageDescriptor } from '@formatjs/intl'; import { FormatXMLElementFn, Options as IntlMessageFormatOptions, PrimitiveType } from 'intl-messageformat'; import * as React from 'react'; import { DEFAULT_INTL_CONFIG } from './utils'; export type IntlConfig = Omit & Partial; export interface ResolvedIntlConfig extends CoreResolvedIntlConfig { textComponent?: React.ComponentType | keyof React.JSX.IntrinsicElements; wrapRichTextChunksInFragment?: boolean; } export interface IntlShape extends ResolvedIntlConfig, IntlFormatters { formatMessage(this: void, descriptor: MessageDescriptor, values?: Record>, opts?: IntlMessageFormatOptions): string; formatMessage(this: void, descriptor: MessageDescriptor, values?: Record>, opts?: IntlMessageFormatOptions): Array; formatters: Formatters; }