1 | import * as React from 'react';
|
2 | import { IntlConfig, IntlShape } from '../types';
|
3 | import { IntlCache, CreateIntlFn } from '@formatjs/intl';
|
4 | interface State {
|
5 | |
6 |
|
7 |
|
8 | cache: IntlCache;
|
9 | |
10 |
|
11 |
|
12 | intl?: IntlShape;
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 | prevConfig: IntlConfig;
|
19 | }
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare const createIntl: CreateIntlFn<React.ReactNode, IntlConfig, IntlShape>;
|
26 | export default class IntlProvider extends React.PureComponent<React.PropsWithChildren<IntlConfig>, State> {
|
27 | static displayName: string;
|
28 | static defaultProps: Pick<import("../types").ResolvedIntlConfig, "timeZone" | "formats" | "messages" | "defaultLocale" | "defaultFormats" | "onError" | "textComponent">;
|
29 | private cache;
|
30 | state: State;
|
31 | static getDerivedStateFromProps(props: Readonly<IntlConfig>, { prevConfig, cache }: State): Partial<State> | null;
|
32 | render(): JSX.Element;
|
33 | }
|
34 | export {};
|
35 |
|
\ | No newline at end of file |