import { RevoGrid } from '../../interfaces'; import { VNode } from '../../stencil-public-runtime'; /** * @param rowId The parent row id, in other words, the row that is expanded. * @param expandedData This data must exist. But subtable rows will not exist if the there are no subtables. */ export declare function getExpandedRowSize(rowId: string, expandedData: { expandedRows: RevoGrid.ExpandedRowsData; subtableRows?: RevoGrid.SubtableRowData; }): number; /** * This can be optimized by not looping through it everything. We only find the differences in subtable num rows. */ export declare function updateExpandedRowsWithHeights(expandedRows: RevoGrid.ExpandedRowsData, subtableRows?: RevoGrid.SubtableRowData): { [x: string]: RevoGrid.ExpandedRowsDataRow | { calcedSize: number; open: boolean; linkColumnId?: RevoGrid.ColumnProp | undefined; size?: number | undefined; expandedLeftTemplate?: RevoGrid.ExpandedRowRendererCtr | undefined; expandedRightTemplate?: RevoGrid.ExpandedRowRendererCtr | undefined; }; }; /** * If this returns true, it means we need to recalculate the row height. * If this returns false, it saves us some calculation and we don't have to recalc and rerender row height. * * Basically this will compare the new subtable rows with old subtable rows to see if the number of rows * are different at all. If they are, then recalc that shit. */ export declare function shouldRecalcRowHeight(newVal: RevoGrid.SubtableRowData, oldVal: RevoGrid.SubtableRowData, expandedRows: RevoGrid.ExpandedRowsData): boolean; /** * Straight up copy of the `mergeProperties` function from columnService. I didn't want to initialize the columnService just so * I could use this function. So I took it and stripped it down. */ export declare function mergeProperties(colData: RevoGrid.ColumnRegular, defaultProps: RevoGrid.CellProps): RevoGrid.CellProps; /** Another function copied from column service */ export declare function customRenderer(colData: RevoGrid.ColumnRegular, model: RevoGrid.CellRendererModel): VNode | string | void; export declare function compareExpandedRows(subtableRows: RevoGrid.SubtableRowData, expandedRows: RevoGrid.ExpandedRowsData): {};