import * as React from 'react'; import { BGridDataItem, BGridProps } from '../types'; export interface MasterDetailHeightOptions { expandedKeysSet: ReadonlySet; getRowKey: (values: unknown, index: number) => React.Key | undefined; getDetailHeight: (item: BGridDataItem, sourceIndex: number) => number; hasDetail?: (item: BGridDataItem, sourceIndex: number) => boolean; sourceIndexByVisibleIndex?: readonly number[]; } export interface BGridRowHeightMetrics { /** Master row heights (for and cell rendering). */ heights: Float64Array; /** Layout offsets including detail heights (for virtual scrolling, paddingTop, selection overlays, total height). */ offsets: Float64Array; /** Total layout height including all rows and expanded details. */ totalHeight: number; /** Whether layout heights are variable. */ variable: boolean; /** Detail panel heights for each visible row (0 if row has no detail or is not expanded). */ detailHeights?: Float64Array; } export declare function createRowHeightMetrics(data: readonly BGridDataItem[], fallbackHeight: number, getRowHeight?: BGridProps['getRowHeight'], masterDetail?: MasterDetailHeightOptions): BGridRowHeightMetrics; /** Returns the row containing offset, or rowCount when offset is at/after the end. */ export declare function getRowIndexAtOffset(offsets: ArrayLike, offset: number): number; /** Returns the first offset index whose value is greater than or equal to target. */ export declare function lowerBoundRowOffset(offsets: ArrayLike, target: number): number;