import * as H from 'history'; import { RouteComponentProps as BasicRouteProps, match } from '@remix-run/router'; import * as React from 'react'; export interface LinkProps extends React.AnchorHTMLAttributes { to: H.LocationDescriptor; replace?: boolean; innerRef?: React.Ref; } export interface MenuDataItem { /** * @name Submenu */ children?: MenuDataItem[]; /** * @name Hidden subtots in the menu */ hideChildrenInMenu?: boolean; /** * @name Hide you and child nodes in the menu */ hideInMenu?: boolean; /** * @name Icon */ icon?: React.ReactNode; /** * @name Custom menu International KEY */ locale?: string | false; /** * @name Name of the menu */ name?: string; /** * @name Used to calibrate the selected value, the default is `path` */ key?: string; /** * @name disable menu option */ disabled?: boolean; /** * @name 路径 */ path?: string; /** * @name Custom parent node * @description When this node is selected, the node of ParentKeys will be selected. */ parentKeys?: string[]; /** * @name Hide yourself and upgrade the child node to your own */ flatMenu?: boolean; /** * @name Modal if it is a Modal instead of Component * @author @sri */ modal?: boolean; /** * Policy paths that must all resolve to boolean true for the menu item to be visible. */ requiredFeatures?: string[]; [key: string]: any; } export interface Route extends MenuDataItem { path: string; routes?: Route[]; breadcrumbName: string; } export type WithFalse = T | false; export interface RouterTypes

extends Omit { computedMatch?: match

; route?: Route; location: BasicRouteProps['location'] | { pathname?: string; }; } export interface MessageDescriptor { id: any; description?: string; defaultMessage?: string; } //# sourceMappingURL=typings.d.ts.map