, 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)
```