import { RevoGrid } from '../../interfaces'; export declare type GroupingOptions = { groupedByColumnIds: RevoGrid.ColumnProp[]; /** is expanded by default */ expandedAll?: boolean; /** todo * choose column prop to which expand button will be applied * if not defined first column in grid */ /** * todo * choose if render cells in grouping row * true by default */ /** * Previously expanded groups * Defines which groups are expanded by value string. By default * it is true, so it assumes that you want everything open. */ prevExpanded: Record; /** The row indexes that is trimmed */ trimmed: Record; /** The maximum depth of the group */ depth: number; /** Row data with Header, Footer, and Gap metadata */ sourceWithGroups: RevoGrid.DataType[]; /** Get the row's cell values used for grouping */ getRowGroupValues: (row: RevoGrid.DataType) => Array; /** Get the group Id associated to the row */ getRowGroupId: (row: RevoGrid.DataType) => string; suppressGroupAddRow: boolean; rowGroupHeaderTemplate: RowGroupHeaderTemplate; }; declare type RowGroupHeaderTemplateProps = { background?: string; depth: number; colId: string; expanded: boolean; value: string; aggregate?: RevoGrid.AggTemplateProps; isFirstCol?: boolean; rowIndexCol?: boolean; onExpandClick?: (e: MouseEvent) => void; }; export declare type RowGroupHeaderTemplate = (createTemplate: any, props: RowGroupHeaderTemplateProps) => any; export declare type BeforeSourceSetEvent = { type: RevoGrid.DimensionRows; source: RevoGrid.DataType[]; }; export declare type OnExpandEvent = { model: RevoGrid.DataType; virtualIndex: number; }; export declare type SourceGather = { source: RevoGrid.DataType[]; prevExpanded: Record; oldNewIndexes?: Record; }; export {};