import { Component, ReactElement } 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?: ReactElement; } export default class LocaleProvider extends Component { static propTypes: { locale: PropTypes.Requireable; }; static defaultProps: { locale: {}; }; static childContextTypes: { c7nLocale: PropTypes.Requireable; }; getChildContext(): { c7nLocale: { 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(): ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & string) | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & number) | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & false) | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & true) | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & ReactElement ReactElement Component)> | null) | (new (props: any) => Component)>) | (ReactElement ReactElement Component)> | null) | (new (props: any) => Component)> & import("react").ReactPortal) | undefined; }