export declare type LangType = 'zh-CN' | 'en-US'; export declare type TranslateFn = (str: T, data?: object) => T | any; declare type CalendarType = { today: string; view: Record; month: { short: Record; long: Record; }; week: { short: Record; long: Record; }; formatYear?: string; formatMonth?: string; monthBeforeYear?: boolean; monthFormat?: string; yearFormat?: string; }; export interface LocaleConfig { locale?: string; dayjsLocale?: string; Calendar: CalendarType; DatePicker: { Calendar?: CalendarType; [key: string]: any; }; Drawer: Record; Empty: Record; Modal: Record; Pagination: Record; Popconfirm: Record; Table: Record; TimePicker: Record; Upload: Record; Progress: Record; Typography: Record; Transfer: Record; ImagePreview: Record; Form?: Record; ColorPicker: Record; Input: Record; Select: Record; Tag: Record; CRUD: Record; Placeholder: Record; Date: Record; dateformat: Record; DateRange: Record; DateTime: Record; MonthRange: Record; QuarterRange: Record; Transfer2: Record; noResult: string; Menu: Record; InputColor: Record; RowInfo: Record; } export declare function register(name: string, config: LocaleConfig): void; export declare function format(str: string, data?: object): any; export declare function makeTranslator(locale: string): TranslateFn; export {};