import { Compatibility, Menu, Module, SubMenu } from '../../app'; import { TranslatorProps } from '../../i18n'; import { Route } from './navigation-type'; export declare function findIndexAndRouteOfMenu(routes: Route[], menuName: string): { route?: Route; index?: number; }; export declare function getMenuTitle(menu: Menu | Module, I18n: TranslatorProps): string; export declare function isMenuIncompatible(compatibility?: Compatibility): boolean; export declare function getCompatibilityError(compatibility: Compatibility | undefined, I18n: TranslatorProps, showDetails?: boolean): string; export declare function formatMenus(module: Module): { [k: string]: { order: number; parent: string; separator: true; title: string; hideIf?: (storeState: any) => boolean; } | { order: number; parent: string; subMenus: { [subMenuKey: string]: SubMenu; }; icon: string; disabled?: boolean; compatibilityAOS?: Compatibility; title: string; hideIf?: (storeState: any) => boolean; } | { order: number; parent: string; isDefault?: boolean; screen: string; icon: string; disabled?: boolean; compatibilityAOS?: Compatibility; title: string; hideIf?: (storeState: any) => boolean; }; }; export declare function hasSubMenus(menu: Menu): boolean; export declare function resolveSubMenus(subMenus: { [key: string]: SubMenu; }): { key: string; screen: string; icon: string; disabled?: boolean; compatibilityAOS?: Compatibility; title: string; hideIf?: (storeState: any) => boolean; parent?: string; order?: number; }[]; export declare function manageSubMenusOverriding(modules: Module[]): Module[]; export declare function getModuleOfMenu(modules: Module[], menuKey: string): Module | undefined; export declare function getDefaultMenuKey(module: Module): string;