import type { ReactNode } from 'react';
import type { Table } from '../../../../../../../../cn-ai-table/table-core';
/** createGetGroupInfo 的返回值形状（groupValue 可为 ReactNode） */
export interface ResolvedGroupHeaderInfo {
    columnHeader: string;
    groupValue: ReactNode;
    depth: number;
    subRowsCount: number;
}
/** 与 useGroupValueFormatter 返回的格式化函数签名对齐 */
export type FormatGroupValueFn = (groupField: string, groupValue: unknown, sampleRowData?: unknown) => ReactNode;
export interface CreateGetGroupInfoParams {
    grouping: string[];
    table: Table<any>;
    formatGroupValue: FormatGroupValueFn;
}
/** `useExpandOnGroupingChange` 入参 */
export interface UseExpandOnGroupingChangeParams {
    table: Table<any>;
    groupingFieldsKey: string;
    groupingLength: number;
    /** 数据源引用；刷新后引用变化时会再次全展开（不保留折叠） */
    dataSource: unknown;
}
