import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; import { CustomFormatConfig, FormatDateOptions, MessageDescriptor } from '@formatjs/intl'; import * as React from 'react'; import { createIntl } from './src/components/createIntl'; import FormattedDateTimeRange from './src/components/dateTimeRange'; import injectIntl, { Context as IntlContext, Provider as RawIntlProvider, WithIntlProps, WrappedComponentProps } from './src/components/injectIntl'; import FormattedMessage from './src/components/message'; import FormattedPlural from './src/components/plural'; import IntlProvider from './src/components/provider'; import FormattedRelativeTime from './src/components/relative'; import useIntl from './src/components/useIntl'; export { createIntlCache, CustomFormatConfig, CustomFormats, FormatDateOptions, FormatDisplayNameOptions, FormatListOptions, FormatNumberOptions, FormatPluralOptions, FormatRelativeTimeOptions, Formatters, IntlCache, IntlFormatters, InvalidConfigError, MessageDescriptor, MessageFormatError, MissingDataError, MissingTranslationError, IntlError as ReactIntlError, IntlErrorCode as ReactIntlErrorCode, UnsupportedFormatterError, } from '@formatjs/intl'; export { IntlConfig, IntlShape, ResolvedIntlConfig } from './src/types'; export { createIntl, FormattedDateTimeRange, FormattedMessage, FormattedPlural, FormattedRelativeTime, injectIntl, IntlContext, IntlProvider, RawIntlProvider, useIntl, WithIntlProps, WrappedComponentProps, }; export declare function defineMessages = Record>(msgs: U): U; export declare function defineMessage(msg: T): T; export declare const FormattedDate: React.FC; export declare const FormattedTime: React.FC; export declare const FormattedNumber: React.FC & CustomFormatConfig<'number'> & { value: number; children?(formattedNumber: string): React.ReactElement | null; }>; export declare const FormattedList: React.FC; export declare const FormattedDisplayName: React.FC; export declare const FormattedDateParts: React.FC[0] | string; children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null; }>; export declare const FormattedTimeParts: React.FC[0] | string; children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null; }>; export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; export type { PrimitiveType } from 'intl-messageformat'; export { FormattedListParts, FormattedNumberParts, } from './src/components/createFormattedComponent';