import type { Shortcut } from '../../../shortcuts/context'; import type { Menu } from './menu'; /** * @typedef KeyboardShortcutsMenuController * @property {function(KeyboardShortcut[]): void} addCustomShortcuts Adds (by replacing) new keyboard shortcuts to the menu. * @property {function(string): number} getContext Gets the keyboard shortcuts context by name. * @property {function(string): void} listen Sets the active keyboard shortcuts context of the menu. */ /** * Creates the controller object that allows extending the keyboard shortcuts of the menu. * * @param {Menu} menu The menu instance. * @param {Array<{ shortcuts: KeyboardShortcut, contextName: string }>} [customKeyboardShortcuts] The list of the custom keyboard shortcuts. * @returns {KeyboardShortcutsMenuController} */ export declare function createKeyboardShortcutsCtrl(menu: Menu, customKeyboardShortcuts?: { shortcuts: Shortcut[]; contextName: string; }[]): { addCustomShortcuts: (shortcuts: Shortcut[], contextName?: string) => void; getCustomShortcuts: () => { shortcuts: Shortcut[]; contextName: string; }[]; getContext: (contextName?: string) => import("../../../shortcuts").Context; listen: (contextName?: string) => void; };