import React from 'react'; import { Locale } from '.'; export interface LocaleReceiverProps { componentName?: string; defaultLocale?: object | Function; children: (locale: object, localeCode?: string, fullLocale?: object) => React.ReactNode; } interface LocaleInterface { [key: string]: any; } export interface LocaleReceiverContext { zpLocale?: LocaleInterface; } export default class LocaleReceiver extends React.Component { static defaultProps: { componentName: string; }; static contextType: React.Context & { exist?: boolean; }>; getLocale(): any; getLocaleCode(): any; render(): React.ReactNode; } declare type LocaleComponent = keyof Locale; export declare function useLocaleReceiver(componentName: T, defaultLocale?: Locale[T] | Function): [Locale[T]]; export {};