## 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 { DisplayNames } from '@formatjs/intl-displaynames'; import { DisplayNamesOptions } from '@formatjs/intl-displaynames'; import { DisplayNamesOptions as DisplayNamesOptions_2 } from '@formatjs/intl-displaynames/lib'; import * as React 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 defineMessages>(msgs: U): U; // @public (undocumented) export type FormatDateOptions = Exclude & CustomFormatConfig; // @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.FC; // @public (undocumented) export const FormattedDateParts: React.FC React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | null; }>; // @public (undocumented) export const FormattedDisplayName: React.FC; // Warning: (ae-forgotten-export) The symbol "PrimitiveType" needs to be exported by the entry point index.d.ts // // @public (undocumented) export class FormattedHTMLMessage extends FormattedMessage> { // (undocumented) static defaultProps: { tagName: "span"; values: {}; }; // (undocumented) static displayName: string; // (undocumented) render(): JSX.Element; } // @public (undocumented) export const FormattedList: React.FC; // 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.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.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.FC[0]; children(val: Intl.NumberFormatPart[]): React.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.ForwardRefExoticComponent & { forwardedRef?: ((instance: any) => void) | React.RefObject | null | undefined; } & React.RefAttributes> & { WrappedComponent: React.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.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.FC; // @public (undocumented) export const FormattedTimeParts: React.FC React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | null; }>; // @public (undocumented) export interface Formatters { // (undocumented) getDateTimeFormat(...args: ConstructorParameters): Intl.DateTimeFormat; // (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.ComponentType

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

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

= any>(WrappedComponent: React.ComponentType

, options?: Opts): React.ForwardRefExoticComponent> & React.RefAttributes> & { WrappedComponent: React.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; // (undocumented) onError(err: string): void; // (undocumented) textComponent?: React.ComponentType | keyof React.ReactHTML; // (undocumented) timeZone?: string; } // @public (undocumented) export const IntlContext: React.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) formatHTMLMessage(descriptor: MessageDescriptor, values?: Record): React.ReactNode; // (undocumented) formatList(values: Array, opts?: FormatListOptions): string; // (undocumented) formatList(values: Array, opts?: FormatListOptions): React.ReactNode; // (undocumented) formatMessage(descriptor: MessageDescriptor, values?: Record): string; // (undocumented) formatMessage(descriptor: MessageDescriptor, values?: Record): string | React.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.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) export type Omit = Pick>; // @public (undocumented) export const RawIntlProvider: React.Provider; // @public (undocumented) export function useIntl(): IntlShape; // @public (undocumented) export type WithIntlProps

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