## API Report File for "react-intl" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import * as React_2 from 'react'; // Warning: (ae-forgotten-export) The symbol "OptionalIntlConfig" needs to be exported by the entry point index.d.ts // // @public export function createIntl(config: OptionalIntlConfig, cache?: IntlCache): IntlShape; // @public (undocumented) export function createIntlCache(): IntlCache; // @public (undocumented) export interface CustomFormatConfig { // (undocumented) format?: string; } // Warning: (ae-forgotten-export) The symbol "Formats" needs to be exported by the entry point index.d.ts // // @public (undocumented) export interface CustomFormats extends Partial { // Warning: (ae-forgotten-export) The symbol "IntlRelativeTimeFormatOptions" needs to be exported by the entry point index.d.ts // // (undocumented) relative?: Record; } // @public (undocumented) export function defineMessage(msg: T): T; // @public (undocumented) export function defineMessages>(msgs: U): U; // @public (undocumented) export type FormatDateOptions = Exclude & CustomFormatConfig; // Warning: (ae-forgotten-export) The symbol "DisplayNamesOptions" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type FormatDisplayNameOptions = Exclude; // Warning: (ae-forgotten-export) The symbol "IntlListFormatOptions" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type FormatListOptions = Exclude; // Warning: (ae-forgotten-export) The symbol "UnifiedNumberFormatOptions" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type FormatNumberOptions = Exclude & CustomFormatConfig; // @public (undocumented) export type FormatPluralOptions = Exclude & CustomFormatConfig; // @public (undocumented) export type FormatRelativeTimeOptions = Exclude & CustomFormatConfig; // @public (undocumented) export const FormattedDate: React_2.FC; // @public (undocumented) export const FormattedDateParts: React_2.FC React_2.ReactElement React_2.Component)> | null) | (new (props: any) => React_2.Component)> | null; }>; // @public (undocumented) export const FormattedDisplayName: React_2.FC; // @public (undocumented) export const FormattedList: React_2.FC; // Warning: (ae-forgotten-export) The symbol "PrimitiveType" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "FormatXMLElementFn" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts // // @public (undocumented) export class FormattedMessage = Record>> extends React_2.Component> { // (undocumented) static defaultProps: { values: {}; }; // (undocumented) static displayName: string; // (undocumented) render(): JSX.Element; // (undocumented) shouldComponentUpdate(nextProps: Props_3): boolean; } // @public (undocumented) export const FormattedNumber: React_2.FC; // Warning: (ae-forgotten-export) The symbol "Formatter" needs to be exported by the entry point index.d.ts // // @public (undocumented) export const FormattedNumberParts: React_2.FC[0]; children(val: Intl.NumberFormatPart[]): React_2.ReactElement | null; }>; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts // // @public (undocumented) export const FormattedPlural: React_2.ForwardRefExoticComponent & { forwardedRef?: ((instance: any) => void) | React_2.RefObject | null | undefined; } & React_2.RefAttributes> & { WrappedComponent: React_2.ComponentType; }; // Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "State" needs to be exported by the entry point index.d.ts // // @public (undocumented) export class FormattedRelativeTime extends React_2.PureComponent { constructor(props: Props); // (undocumented) componentDidMount(): void; // (undocumented) componentDidUpdate(): void; // (undocumented) componentWillUnmount(): void; // (undocumented) static defaultProps: Pick; // (undocumented) static displayName: string; // (undocumented) static getDerivedStateFromProps(props: Props, state: State_2): Partial | null; // (undocumented) render(): JSX.Element; // (undocumented) scheduleNextUpdate({ updateIntervalInSeconds, unit }: Props, { currentValueInSeconds }: State_2): void; // (undocumented) state: State_2; // (undocumented) _updateTimer: any; } // @public (undocumented) export const FormattedTime: React_2.FC; // @public (undocumented) export const FormattedTimeParts: React_2.FC React_2.ReactElement React_2.Component)> | null) | (new (props: any) => React_2.Component)> | null; }>; // @public (undocumented) export interface Formatters { // (undocumented) getDateTimeFormat(...args: ConstructorParameters): Intl.DateTimeFormat; // Warning: (ae-forgotten-export) The symbol "DisplayNames" needs to be exported by the entry point index.d.ts // // (undocumented) getDisplayNames(...args: ConstructorParameters): DisplayNames; // Warning: (ae-forgotten-export) The symbol "ListFormat" needs to be exported by the entry point index.d.ts // // (undocumented) getListFormat(...args: ConstructorParameters): ListFormat; // Warning: (ae-forgotten-export) The symbol "IntlMessageFormat" needs to be exported by the entry point index.d.ts // // (undocumented) getMessageFormat(...args: ConstructorParameters): IntlMessageFormat; // (undocumented) getNumberFormat(...args: ConstructorParameters): Intl.NumberFormat; // (undocumented) getPluralRules(...args: ConstructorParameters): Intl.PluralRules; // Warning: (ae-forgotten-export) The symbol "RelativeTimeFormat" needs to be exported by the entry point index.d.ts // // (undocumented) getRelativeTimeFormat(...args: ConstructorParameters): RelativeTimeFormat; } // Warning: (ae-forgotten-export) The symbol "Opts" needs to be exported by the entry point index.d.ts // // @public (undocumented) export function injectIntl = WrappedComponentProps>(WrappedComponent: React_2.ComponentType

, options?: Opts): React_2.FC> & { WrappedComponent: React_2.ComponentType

; }; // @public (undocumented) export function injectIntl = WrappedComponentProps, T extends React_2.ComponentType

= any>(WrappedComponent: React_2.ComponentType

, options?: Opts): React_2.ForwardRefExoticComponent> & React_2.RefAttributes> & { WrappedComponent: React_2.ComponentType

; }; // @public (undocumented) export interface IntlCache { // (undocumented) dateTime: Record; // (undocumented) displayNames: Record; // (undocumented) list: Record; // (undocumented) message: Record; // (undocumented) number: Record; // (undocumented) pluralRules: Record; // (undocumented) relativeTime: Record; } // @public (undocumented) export interface IntlConfig { // (undocumented) defaultFormats: CustomFormats; // (undocumented) defaultLocale: string; // (undocumented) formats: CustomFormats; // (undocumented) locale: string; // Warning: (ae-forgotten-export) The symbol "MessageFormatElement" needs to be exported by the entry point index.d.ts // // (undocumented) messages: Record | Record; // Warning: (ae-forgotten-export) The symbol "FormatError" needs to be exported by the entry point index.d.ts // // (undocumented) onError(err: ReactIntlError | FormatError): void; // (undocumented) textComponent?: React_2.ComponentType | keyof React_2.ReactHTML; // (undocumented) timeZone?: string; // (undocumented) wrapRichTextChunksInFragment?: boolean; } // @public (undocumented) export const IntlContext: React_2.Context; // @public (undocumented) export interface IntlFormatters { // (undocumented) formatDate(value: Parameters[0] | string, opts?: FormatDateOptions): string; // (undocumented) formatDateToParts(value: Parameters[0] | string, opts?: FormatDateOptions): Intl.DateTimeFormatPart[]; // (undocumented) formatDisplayName(value: Parameters[0], opts?: FormatDisplayNameOptions): string | undefined; // (undocumented) formatList(values: Array, opts?: FormatListOptions): string; // (undocumented) formatList(values: Array, opts?: FormatListOptions): React_2.ReactNode; // (undocumented) formatMessage(descriptor: MessageDescriptor, values?: Record): string; // (undocumented) formatMessage(descriptor: MessageDescriptor, values?: Record>): string | React_2.ReactNodeArray; // (undocumented) formatNumber(value: Parameters[0], opts?: FormatNumberOptions): string; // (undocumented) formatNumberToParts(value: Parameters[0], opts?: FormatNumberOptions): Intl.NumberFormatPart[]; // (undocumented) formatPlural(value: Parameters[0], opts?: FormatPluralOptions): ReturnType; // (undocumented) formatRelativeTime(value: Parameters[0], unit?: Parameters[1], opts?: FormatRelativeTimeOptions): string; // (undocumented) formatTime(value: Parameters[0] | string, opts?: FormatDateOptions): string; // (undocumented) formatTimeToParts(value: Parameters[0] | string, opts?: FormatDateOptions): Intl.DateTimeFormatPart[]; } // Warning: (ae-forgotten-export) The symbol "State" needs to be exported by the entry point index.d.ts // // @public (undocumented) export class IntlProvider extends React_2.PureComponent { // (undocumented) static defaultProps: Pick; // (undocumented) static displayName: string; // (undocumented) static getDerivedStateFromProps(props: OptionalIntlConfig, { prevConfig, cache }: State): Partial | null; // (undocumented) render(): JSX.Element; // (undocumented) state: State; } // @public (undocumented) export interface IntlShape extends IntlConfig, IntlFormatters { // (undocumented) formatters: Formatters; } // @public (undocumented) export interface MessageDescriptor { // (undocumented) defaultMessage?: string; // (undocumented) description?: string | object; // (undocumented) id?: string | number; } // @public (undocumented) type Omit_2 = Pick>; export { Omit_2 as Omit } // @public (undocumented) export const RawIntlProvider: React_2.Provider; // @public (undocumented) export class ReactIntlError extends Error { constructor(code: ReactIntlErrorCode, message: string, descriptor?: MessageDescriptor, exception?: Error); // (undocumented) readonly code: ReactIntlErrorCode; // (undocumented) readonly descriptor?: MessageDescriptor; } // @public (undocumented) export const enum ReactIntlErrorCode { // (undocumented) FORMAT_ERROR = "FORMAT_ERROR", // (undocumented) INVALID_CONFIG = "INVALID_CONFIG", // (undocumented) MISSING_DATA = "MISSING_DATA", // (undocumented) MISSING_TRANSLATION = "MISSING_TRANSLATION", // (undocumented) UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER" } // @public (undocumented) export function useIntl(): IntlShape; // @public (undocumented) export type WithIntlProps

= Omit_2 & { forwardedRef?: React_2.Ref; }; // @public (undocumented) export type WrappedComponentProps = { [k in IntlPropName]: IntlShape; }; // (No @packageDocumentation comment for this package) ```