1 | import * as React from 'react';
|
2 | import { MessageDescriptor, CustomFormatConfig, FormatDateOptions } from '@formatjs/intl';
|
3 | import { IntlListFormatOptions } from '@formatjs/intl-listformat';
|
4 | import { DisplayNamesOptions } from '@formatjs/intl-displaynames';
|
5 | import { NumberFormatOptions } from '@formatjs/ecma402-abstract';
|
6 | export { IntlConfig, ResolvedIntlConfig, IntlShape } from './src/types';
|
7 | export { createIntlCache, MessageDescriptor, IntlCache, Formatters, IntlFormatters, FormatDisplayNameOptions, FormatListOptions, FormatPluralOptions, FormatRelativeTimeOptions, FormatNumberOptions, FormatDateOptions, CustomFormatConfig, CustomFormats, UnsupportedFormatterError, InvalidConfigError, MissingDataError, MessageFormatError, MissingTranslationError, IntlErrorCode as ReactIntlErrorCode, IntlError as ReactIntlError, } from '@formatjs/intl';
|
8 | export declare function defineMessages<K extends keyof any, T = MessageDescriptor, U extends Record<K, T> = Record<K, T>>(msgs: U): U;
|
9 | export declare function defineMessage<T extends MessageDescriptor>(msg: T): T;
|
10 | export { default as injectIntl, Provider as RawIntlProvider, Context as IntlContext, WithIntlProps, WrappedComponentProps, } from './src/components/injectIntl';
|
11 | export { default as useIntl } from './src/components/useIntl';
|
12 | export { default as IntlProvider, createIntl } from './src/components/provider';
|
13 | export declare const FormattedDate: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
14 | value: string | number | Date | undefined;
|
15 | }>;
|
16 | export declare const FormattedTime: React.FC<Intl.DateTimeFormatOptions & CustomFormatConfig & {
|
17 | value: string | number | Date | undefined;
|
18 | }>;
|
19 | export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & {
|
20 | value: number | bigint;
|
21 | }>;
|
22 | export declare const FormattedList: React.FC<IntlListFormatOptions & {
|
23 | value: readonly React.ReactNode[];
|
24 | }>;
|
25 | export declare const FormattedDisplayName: React.FC<DisplayNamesOptions & {
|
26 | value: string | number | Record<string, unknown>;
|
27 | }>;
|
28 | export declare const FormattedDateParts: React.FC<FormatDateOptions & {
|
29 | value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
|
30 | children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null;
|
31 | }>;
|
32 | export declare const FormattedTimeParts: React.FC<FormatDateOptions & {
|
33 | value: Parameters<Intl.DateTimeFormat['format']>[0] | string;
|
34 | children(val: Intl.DateTimeFormatPart[]): React.ReactElement | null;
|
35 | }>;
|
36 | export { FormattedNumberParts, FormattedListParts, } from './src/components/createFormattedComponent';
|
37 | export { default as FormattedRelativeTime } from './src/components/relative';
|
38 | export { default as FormattedPlural } from './src/components/plural';
|
39 | export { default as FormattedMessage } from './src/components/message';
|
40 | export { default as FormattedDateTimeRange } from './src/components/dateTimeRange';
|
41 | export type { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
|
42 |
|
\ | No newline at end of file |