1 | import { IntlCache } from '@formatjs/intl';
|
2 | import * as React from 'react';
|
3 | import type { IntlConfig, IntlShape } from '../types';
|
4 | import { DefaultIntlConfig } from '../utils';
|
5 | interface State {
|
6 | |
7 |
|
8 |
|
9 | cache: IntlCache;
|
10 | |
11 |
|
12 |
|
13 | intl?: IntlShape;
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | prevConfig: IntlConfig;
|
20 | }
|
21 | export default class IntlProvider extends React.PureComponent<React.PropsWithChildren<IntlConfig>, State> {
|
22 | static displayName: string;
|
23 | static defaultProps: DefaultIntlConfig;
|
24 | private cache;
|
25 | state: State;
|
26 | static getDerivedStateFromProps(props: Readonly<IntlConfig>, { prevConfig, cache }: State): Partial<State> | null;
|
27 | render(): React.JSX.Element;
|
28 | }
|
29 | export {};
|