1 | import type { ProSettings } from './defaultSettings';
|
2 | import type { MenuDataItem } from './typing';
|
3 | type BreadcrumbItem = Omit<MenuDataItem, 'children' | 'routes'> & {
|
4 | routes?: BreadcrumbItem;
|
5 | };
|
6 | export declare const matchParamsPath: (pathname: string, breadcrumb?: Record<string, BreadcrumbItem>, breadcrumbMap?: Map<string, BreadcrumbItem>) => BreadcrumbItem;
|
7 | export type GetPageTitleProps = {
|
8 | pathname?: string;
|
9 | breadcrumb?: Record<string, BreadcrumbItem>;
|
10 | breadcrumbMap?: Map<string, BreadcrumbItem>;
|
11 | menu?: ProSettings['menu'];
|
12 | title?: ProSettings['title'];
|
13 | pageName?: string;
|
14 | formatMessage?: (data: {
|
15 | id: any;
|
16 | defaultMessage?: string;
|
17 | }) => string;
|
18 | };
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare const getPageTitleInfo: (props: GetPageTitleProps, ignoreTitle?: boolean) => {
|
26 | title: string;
|
27 | id: string;
|
28 | pageName: string;
|
29 | };
|
30 | export declare const getPageTitle: (props: GetPageTitleProps, ignoreTitle?: boolean) => string;
|
31 | export {};
|