import { type GridState } from '../../core/grid/index.js'; import { type GridFeature, type RowNode } from '../../core/types/index.js'; import type { TreeOptions } from './tree.types.js'; export declare class Tree { #private; readonly defaultExpandedDepth: number; constructor(grid: GridState, options: TreeOptions); totalRows: number; filteredRows: number; build: (nodes: RowNode[]) => RowNode[]; expandableIds: () => string[]; expandAll: () => void; collapseAll: () => void; } export declare function tree(options: TreeOptions): GridFeature; export declare function getTree(grid: GridState): Tree | undefined; declare module '../../core/types/api.js' { interface GridApi { expandAllRows?: () => void; collapseAllRows?: () => void; } }