import type { Key } from 'react'; import type { BGridDataItem, BGridTreeRowMeta } from '../types'; export type BGridTreeDiagnostic = 'missingRowKey' | 'duplicateRowKey' | 'cycle'; export interface BGridTreeProjection { valid: boolean; data: BGridDataItem[]; sourceIndexByVisibleIndex: number[]; visibleIndexBySourceIndex: Map; metaByRowKey: Map; metaBySourceIndex: Map; diagnostics: BGridTreeDiagnostic[]; } /** Projects flat parent-key data into visible pre-order rows without mutating the input. */ export declare function projectTreeData(params: { data: BGridDataItem[]; rowKey: Key | Key[]; parentRowKey: Key | Key[]; expandedRowKeys: readonly Key[]; includedSourceIndexes?: readonly number[]; orderedSourceIndexes?: readonly number[]; }): BGridTreeProjection; export declare function getTreeRowPath(metaBySourceIndex: ReadonlyMap, sourceIndex: number): Key[];