1 | import type * as H from 'history';
|
2 | import type React from 'react';
|
3 | import type { match, RouteComponentProps as BasicRouteProps } from 'react-router-dom';
|
4 | export declare type LinkProps = {
|
5 | to: H.LocationDescriptor;
|
6 | replace?: boolean;
|
7 | innerRef?: React.Ref<HTMLAnchorElement>;
|
8 | } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
9 | export declare type MenuDataItem = {
|
10 |
|
11 | children?: MenuDataItem[];
|
12 |
|
13 | hideChildrenInMenu?: boolean;
|
14 |
|
15 | hideInMenu?: boolean;
|
16 |
|
17 | icon?: React.ReactNode;
|
18 |
|
19 | locale?: string | false;
|
20 |
|
21 | name?: string;
|
22 |
|
23 | key?: string;
|
24 |
|
25 | disabled?: boolean;
|
26 |
|
27 | path?: string;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | parentKeys?: string[];
|
34 |
|
35 | flatMenu?: boolean;
|
36 |
|
37 | target?: string;
|
38 | [key: string]: any;
|
39 | };
|
40 | export declare type Route = {
|
41 | routes?: Route[];
|
42 | } & MenuDataItem;
|
43 | export declare type WithFalse<T> = T | false;
|
44 | export declare type RouterTypes<P> = {
|
45 | computedMatch?: match<P>;
|
46 | route?: Route;
|
47 | location: BasicRouteProps['location'] | {
|
48 | pathname?: string;
|
49 | };
|
50 | } & Omit<BasicRouteProps, 'location'>;
|
51 | export declare type MessageDescriptor = {
|
52 | id: any;
|
53 | description?: string;
|
54 | defaultMessage?: string;
|
55 | };
|