UNPKG

463 BTypeScriptView Raw
1import type { MenuDataItem, MessageDescriptor, Route } from '../typing';
2declare const getMenuData: (routes: Readonly<Route[]>, menu?: {
3 locale?: boolean;
4}, formatMessage?: ((message: MessageDescriptor) => string) | undefined, menuDataRender?: ((menuData: MenuDataItem[]) => MenuDataItem[]) | undefined) => {
5 breadcrumb: Record<string, MenuDataItem>;
6 breadcrumbMap: Map<string, MenuDataItem>;
7 menuData: MenuDataItem[];
8};
9export { getMenuData };