import type { HotInstance } from '../../../core/types'; /** * A fixed-area counter, described by the setting its value is read from and the setting its value is * written to. The two keys differ for the fixed columns - see `FIXED_COLUMN_COUNTS`. */ interface FixedCount { readKey: string; writeKey: string; } /** * The counters that `alter` lowers when it removes rows from a fixed area. */ export declare const FIXED_ROW_COUNTS: FixedCount[]; /** * The counters that `alter` lowers when it removes columns from a fixed area. * * Since 12.0.0, the "fixedColumnsLeft" option is replaced with the "fixedColumnsStart" option. The old * name still works, and using both names together throws an error. To prevent that, the engine needs to * modify the original option key to bypass the validation. */ export declare const FIXED_COLUMN_COUNTS: FixedCount[]; /** * Removes rows or columns and brings back the fixed-area counters that the removal lowered. * * Undoing an insertion removes the created rows or columns. When they belong to a fixed area, `alter` * lowers the matching counter, which un-pins a row or column that was pinned before the insertion * (DEV-2551). The values from before the removal are put back from the `beforeRender` hook, so `alter` * still draws the grid once, with the counters already correct. Only a decrease is reverted - a value * raised in the meantime by `updateSettings` stays as the user set it. * * @param {Core} hot The Handsontable instance. * @param {Array} counts The counters to keep. * @param {function(): void} removeCallback The callback that removes the rows or columns. */ export declare function removeAndKeepFixedCounts(hot: HotInstance, counts: FixedCount[], removeCallback: () => void): void; export {};