import type MergedCellsCollection from '../cellsCollection'; import type { default as CellRange } from '../../../3rdparty/walkontable/src/cell/range'; import type { HotInstance } from '../../../core/types'; /** * Minimal interface that toggleMergeItem requires from the MergeCells plugin. */ interface MergeCellsPluginRef { mergedCellsCollection: MergedCellsCollection | null; toggleMerge(cellRange: CellRange): void; } /** * @param {*} plugin The plugin instance. * @returns {object} */ export default function toggleMergeItem(plugin: MergeCellsPluginRef): { key: string; name(this: HotInstance): string; callback(this: HotInstance): void; disabled(this: HotInstance): boolean; hidden: boolean; }; export {};