import { TreeCellMapI, TreeNode } from './types.js'; /** * TreeCellMap keep mapping between grid cells and tree nodes */ export declare class TreeCellMap implements TreeCellMapI { rowIndex: number; colIndex: number; node?: TreeNode; parent?: string; /** @private */ childColCells: Array; /** @private */ childRowCells: Array; /** @private */ indexInParent: number; /** @private */ siblingCount: number; constructor(rowIndex: number, colIndex: number, node?: TreeNode, parent?: string); /** * Defines if grid cell is child or main one * * @returns {boolean} - true - is children, false - main one */ isChild(): boolean; /** * Defines if node has child row or column nodes or not * * @returns {boolean} - true - has children, false - does not have */ hasChildren(): boolean; /** * Defines if node has child column nodes or not * * @returns {boolean} - true - has column children, false - does not have */ hasColCell(): boolean; /** * Adds column children cell * * @param {TreeCellMapI} cell - column children * @returns {void} */ addColCell(cell: TreeCellMapI): void; /** * Returns list of column children * * @returns {Array} - list of column children */ getColCell(): Array; /** * Defines if node has child row nodes or not * * @returns {boolean} - true - has row children, false - does not have */ hasRowCell(): boolean; /** * Adds row children cell * * @param {TreeCellMapI} cell - row children * @returns {void} */ addRowCell(cell: TreeCellMapI): void; /** * Returns list of row children * * @returns {Array} - list of row children */ getRowCell(): Array; /** * Returns row index of last merged cell * * @returns {number} - row index */ getStopRowIndex(): number; /** * Returns column index of last merged cell * * @returns {number} - column index */ getStopColIndex(): number; /** * Save index of node in parent child and total parent child count * * @param {number} indexInParent - index * @param {number} siblingCount - child count * @returns {void} */ setIndexInParent(indexInParent: number, siblingCount: number): void; /** * Returns node index in parent and total parent child count * * @returns {{ indexInParent: number, siblingCount: number }} - index & count */ getIndexInParent(): { indexInParent: number; siblingCount: number; }; getParenPosition(): Array | undefined; } export default TreeCellMap;