/** * Description of the destination in the navigation menu. * * @param viewName Identifier of view. */ export interface ViewNavigationItem { viewName?: string; hidden?: boolean; /** TODO: remove in 2.0.0 */ id?: string; } /** * Returns MenuItem if it is ViewNavigationItem * * @param item to be identified as view */ export declare function isViewNavigationItem(item: MenuItem): item is ViewNavigationItem; /** * Description of the category in the navigation menu. * Used to create nesting levels of menu items. * @param categoryName The name of the category. * @param child list of categories or menu items included in a category. * TODO Deprecated. ViewNavigationCategory will be deleted in 2.0.0 */ export interface ViewNavigationCategory { categoryName: string; child: Array; } /** * @param item * TODO Deprecated. ViewNavigationCategory will be deleted in 2.0.0 */ export declare function isViewNavigationCategory(item: any): item is ViewNavigationCategory; /** * Description of groups in the navigation menu. * * Used to create nesting levels of menu items. * * @param title Title of group. Navigation element shows it to user. * @param child Array of navigation elements specified below group(View or inner Group) */ export interface ViewNavigationGroup { /** TODO identifier will be nullable and string-only in 2.0.0 */ id?: string | number; title: string; child: Array; hidden?: boolean; defaultView?: string; } /** * Returns MenuItem if it is ViewNavigationGroup * * @param item to be identified as group */ export declare function isViewNavigationGroup(item: MenuItem): item is ViewNavigationGroup; /** * The type of object to describe the menu items in the navigation. */ export declare type MenuItem = ViewNavigationGroup | ViewNavigationCategory | ViewNavigationItem; /** * 1 - for static, top level navigation * 2 - `SecondLevelMenu` tab widgets * 2 - `ThirdLevelMenu` tab widgets * 2 - `FourthLevelMenu` tab widgets */ export declare type NavigationLevel = 1 | 2 | 3 | 4; /** * Model for displayed tab item */ export interface NavigationTab { /** * View name where navigation tab will redirect the user */ viewName: string; /** * Displayed title: either view name or a group name */ title?: string; }