/** * Menu helper * * @constructor */ import { UserAP } from "../models/UserAP"; import { ActionType, AdminpanelConfig, HrefConfig, ModelConfig } from "../interfaces/adminpanelConfig"; export type MenuItem = { link: string; title: string; id: string; type?: 'blank' | 'self'; actions: HrefConfig[] | null; icon: string | null; accessRightsToken: string | null; entityName?: string; section?: string; }; export declare class MenuHelper { private config; constructor(config: AdminpanelConfig); /** * Get menu brand title * * @returns {string} */ getBrandTitle(): string; /** * Check if global actions buttons added to action * * @param {Object} modelConfig * @param {string=} [action] Defaults to `list` * @returns {boolean} */ hasGlobalActions(modelConfig: ModelConfig, action: ActionType): boolean; /** * Check if inline actions buttons added to action * * @param {Object} modelConfig * @param {string=} [action] Defaults to `list` * @returns {boolean} */ hasInlineActions(modelConfig: ModelConfig, action: ActionType): boolean; /** * Get list of custom global buttons for action * * @param {Object} modelConfig * @param {string=} [action] * @returns {Array} */ getGlobalActions(modelConfig: ModelConfig, action: ActionType): HrefConfig[]; /** * Get list of custom inline buttons for action * * @param {Object} modelConfig * @param {string=} [action] * @returns {Array} */ getInlineActions(modelConfig: ModelConfig, action: ActionType): HrefConfig[]; /** * Get list of entity menus that was not bound to groups * * @returns {Array} */ getMenuItems(user: UserAP): MenuItem[]; }