1 | import type React from 'react';
|
2 | export interface StaticContext {
|
3 | statusCode?: number | undefined;
|
4 | }
|
5 | export interface match<Params extends {
|
6 | [K in keyof Params]?: string;
|
7 | } = Record<string, any>> {
|
8 | params: Params;
|
9 | isExact: boolean;
|
10 | path: string;
|
11 | url: string;
|
12 | }
|
13 | export declare type LinkProps = {
|
14 | to: string;
|
15 | replace?: boolean;
|
16 | innerRef?: React.Ref<HTMLAnchorElement>;
|
17 | } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
18 | export declare type MenuDataItem = {
|
19 |
|
20 | children?: MenuDataItem[];
|
21 | routes?: undefined;
|
22 |
|
23 | hideChildrenInMenu?: boolean;
|
24 |
|
25 | hideInMenu?: boolean;
|
26 |
|
27 | icon?: React.ReactNode;
|
28 |
|
29 | locale?: string | false;
|
30 |
|
31 | name?: string;
|
32 |
|
33 | key?: string;
|
34 |
|
35 | disabled?: boolean;
|
36 |
|
37 | path?: string;
|
38 | |
39 |
|
40 |
|
41 |
|
42 |
|
43 | parentKeys?: string[];
|
44 |
|
45 | flatMenu?: boolean;
|
46 |
|
47 | target?: string;
|
48 | |
49 |
|
50 |
|
51 | tooltip?: string;
|
52 | [key: string]: any;
|
53 | };
|
54 | export declare type Route = Omit<MenuDataItem, 'routes'> & {
|
55 | children?: Route[];
|
56 | };
|
57 | export declare type WithFalse<T> = T | false;
|
58 | export declare type RouterTypes = {
|
59 | computedMatch?: match<any>;
|
60 | route?: Route;
|
61 | location: {
|
62 | pathname?: string;
|
63 | };
|
64 | };
|
65 | export declare type MessageDescriptor = {
|
66 | id: any;
|
67 | description?: string;
|
68 | defaultMessage?: string;
|
69 | };
|