import ITranslation from '../Translation'; import { IImageInfo } from '../../utils/file'; export default interface IMenu { readonly id?: string; /** The menu position slug. Should always be defined (except when creating a new menu). */ readonly slug: MenuPositionEnum | undefined; /** Is the menu active or not */ readonly active: boolean; /** The friendly name displayed in the list */ readonly display_name: string; /** The top menu entries */ readonly menu_entries: IMenuEntry[]; } export declare enum MenuEntryType { Category = "category", Attribute = "attribute", Url = "url", Empty = "empty" } export interface IMenuEntry { /** Type of action to do */ entry_type: MenuEntryType; /** Main value to use for the action ex: destination url */ value: string; /** Optional second value to use for action. ex: attribute value */ sub_value?: string; /** The title to display for this entry */ title: ITranslation[]; /** The aria label to use for the link */ aria?: ITranslation[]; /** The image to use */ image?: IImageInfo; /** Sub menu entries */ sub_menu?: IMenuEntry[]; } export declare enum MenuPositionEnum { MAIN_WEB = "main_menu_web", FOOTER_WEB = "menu_footer_web", POS_HOME = "menu_pos_home" }