import React from 'react'; import { History } from 'history'; declare type RouteProps = { path: string; parentPath?: string; }; declare type ConfigProviderContextProps = { local?: Record; routes?: RouteProps[]; history?: History; getPermissio?(): Record; t?(k: string): string; }; export declare const ConfigProviderContext: React.Context; interface IProps { local?: 'en' | 'zh-CN'; routes?: RouteProps[]; history?: History; getPermissio?(): Record; t?(k: string): string; } declare const ConfigProvider: React.FC; export default ConfigProvider;