import type React from 'react'; export interface StaticContext { statusCode?: number | undefined; } export interface match> { params: Params; isExact: boolean; path: string; url: string; } export declare type LinkProps = { to: string; replace?: boolean; innerRef?: React.Ref; } & React.AnchorHTMLAttributes; export declare type MenuDataItem = { /** @name 子菜单 */ children?: MenuDataItem[]; routes?: undefined; /** @name 在菜单中隐藏子节点 */ hideChildrenInMenu?: boolean; /** @name 在菜单中隐藏自己和子节点 */ hideInMenu?: boolean; /** @name 菜单的icon */ icon?: React.ReactNode; /** @name 自定义菜单的国际化 key */ locale?: string | false; /** @name 菜单的名字 */ name?: string; /** @name 用于标定选中的值,默认是 path */ key?: string; /** @name disable 菜单选项 */ disabled?: boolean; /** @name 路径,可以设定为网页链接 */ path?: string; /** * 当此节点被选中的时候也会选中 parentKeys 的节点 * * @name 自定义父节点 */ parentKeys?: string[]; /** @name 隐藏自己,并且将子节点提升到与自己平级 */ flatMenu?: boolean; /** @name 指定外链打开形式,同a标签 */ target?: string; /** * menuItem 的 tooltip 显示的路径 */ tooltip?: string; [key: string]: any; }; export declare type Route = Omit & { children?: Route[]; }; export declare type WithFalse = T | false; export declare type RouterTypes = { computedMatch?: match; route?: Route; location: { pathname?: string; }; }; export declare type MessageDescriptor = { id: any; description?: string; defaultMessage?: string; };