import { DataRow } from '../../../types/data-structures';
import { internalRows } from '../data-table-types';
import { DftTotalConfig } from '../../../utils/totals/totals-utils';
import { GroupDefinition } from './grouping-types';
/**
 * Builds a flat list of grouped rows from a flat data array based on the provided group definitions.
 * The grouping is applied recursively, and only expanded groups are traversed further.
 *
 * @param {DataRow[]} rows - The flat data rows to be grouped.
 * @param {GroupDefinition[]} groups - Definitions of columns to group by and their visibility.
 * @param {number} lineHeight - The height of each row (used for calculating total offset).
 * @param {Set<string>} expandedGroups - A set of group IDs indicating which groups are expanded.
 * @returns {{ flatRows: internalRows[]; offset: number }} An object containing the flattened rows and the total offset.
 */
export declare function buildFlatGroupedRows(rows: DataRow[], groups: GroupDefinition[], lineHeight: number, expandedGroups: Set<string>, totals?: DftTotalConfig[]): {
    flatRows: internalRows[];
    offset: number;
};
//# sourceMappingURL=buildFlatGroupedRows.d.ts.map