import { Optional } from '@ephox/katamari'; import type { AlloyComponent } from '../../api/component/ComponentApi'; import type { MenuPreparation } from '../../ui/single/TieredMenuSpec'; export type MenuDirectory = Record; export interface LayeredItemTrigger { readonly triggeringItem: AlloyComponent; readonly triggeredMenu: AlloyComponent; readonly triggeringPath: string[]; } export interface LayeredState { setContents: (sPrimary: string, sMenus: Record, sExpansions: Record, dir: MenuDirectory) => void; setMenuBuilt: (menuName: string, built: AlloyComponent) => void; expand: (itemValue: string) => Optional; refresh: (itemValue: string) => Optional; collapse: (itemValue: string) => Optional; lookupMenu: (menuValue: string) => Optional; lookupItem: (itemValue: string) => Optional; otherMenus: (path: string[]) => string[]; getPrimary: () => Optional; getMenus: () => Record; clear: () => void; isClear: () => boolean; getTriggeringPath: (itemValue: string, getItemByValue: (itemValue: string) => Optional) => Optional; } export declare const LayeredState: { init: () => LayeredState; extractPreparedMenu: (prep: MenuPreparation) => Optional; }; //# sourceMappingURL=LayeredState.d.ts.map