interface CellRangeLike { getTopStartCorner(): { row: number | null; col: number | null; }; getBottomEndCorner(): { row: number | null; col: number | null; }; } export interface MenuItemLike { name?: string; disabled?: boolean | (() => boolean); disableSelection?: boolean; submenu?: Record; hidden?: boolean | (() => boolean); checkable?: boolean; [key: string]: unknown; } /** * @param {CellRange[]} selRanges An array of the cell ranges. * @returns {object[]} */ export declare function normalizeSelection(selRanges: CellRangeLike[]): { start: { row: number | null; col: number | null; }; end: { row: number | null; col: number | null; }; }[]; /** * Check if the provided element is a submenu opener. * * @param {object} itemToTest Item element. * @returns {boolean} */ export declare function isItemSubMenu(itemToTest: MenuItemLike): boolean; /** * Check if the provided element is a menu separator. * * @param {object} itemToTest Item element. * @returns {boolean} */ export declare function isItemSeparator(itemToTest: MenuItemLike): boolean; /** * Check if the provided element presents the disabled menu item. * * @param {object} itemToTest Item element. * @param {object} hot The context for the item function. * @returns {boolean} */ export declare function isItemDisabled(itemToTest: MenuItemLike, hot: Record): boolean; /** * Check if the provided element presents the disabled selection menu item. * * @param {object} itemToTest Item element. * @returns {boolean} */ export declare function isItemSelectionDisabled(itemToTest: MenuItemLike): boolean; /** * @param {HTMLElement} cell The HTML cell element to check. * @returns {boolean} */ export declare function isSeparator(cell: HTMLElement): boolean; /** * @param {HTMLElement} cell The HTML cell element to check. * @returns {boolean} */ export declare function hasSubMenu(cell: HTMLElement): boolean; /** * @param {HTMLElement} cell The HTML cell element to check. * @returns {boolean} */ export declare function isDisabled(cell: HTMLElement): boolean; /** * @param {HTMLElement} cell The HTML cell element to check. * @returns {boolean} */ export declare function isSelectionDisabled(cell: HTMLElement): boolean; /** * @param {object} item The object which describes the context menu item properties. * @param {Core} instance The Handsontable instance. * @returns {boolean} */ export declare function isItemHidden(item: MenuItemLike, instance: Record): boolean; /** * Removes menu separators from the context menu items collection. * * @param {object[]} items The context menu items collection. * @param {string} separator The string which identifies the context menu separator item. * @returns {object[]} */ export declare function filterSeparators(items: MenuItemLike[], separator?: string): MenuItemLike[]; /** * Check if the provided element presents the checkboxable menu item. * * @param {object} itemToTest Item element. * @returns {boolean} */ export declare function isItemCheckable(itemToTest: MenuItemLike): boolean; export {};