/// import * as React from 'react'; import PropTypes from 'prop-types'; import { ModalLocale } from '../modal/locale'; export interface Locale { locale: string; Pagination?: Object; DatePicker?: Object; TimePicker?: Object; Calendar?: Object; Table?: Object; Modal?: ModalLocale; Popconfirm?: Object; Transfer?: Object; Select?: Object; Upload?: Object; } export interface LocaleProviderProps { locale: Locale; children?: React.ReactElement; } export default class LocaleProvider extends React.Component { static propTypes: { locale: PropTypes.Requireable; }; static defaultProps: { locale: {}; }; static childContextTypes: { antLocale: PropTypes.Requireable; }; getChildContext(): { antLocale: { exist: boolean; locale: string; Pagination?: Object | undefined; DatePicker?: Object | undefined; TimePicker?: Object | undefined; Calendar?: Object | undefined; Table?: Object | undefined; Modal?: ModalLocale | undefined; Popconfirm?: Object | undefined; Transfer?: Object | undefined; Select?: Object | undefined; Upload?: Object | undefined; }; }; componentWillMount(): void; componentWillReceiveProps(nextProps: LocaleProviderProps): void; componentDidUpdate(): void; componentWillUnmount(): void; render(): React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> | (React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> & string) | (React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> & number) | (React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> & true) | (React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> & false) | (React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)> & React.ReactPortal) | (undefined & string) | (undefined & number) | undefined; }