import {
  Node,
  Palette,
  S2DataConfig,
  S2Options,
  S2Theme,
  SpreadSheet,
  TargetCellInfo,
} from '@antv/s2';
export interface AndvS2Config {
  dataCfg?: S2DataConfig;
  options: S2Options;
  header?: any;
  theme?: S2Theme;
  palette?: Palette;
  onRowCellCollapseTreeRows?: (val: {
    isCollapsed: boolean;
    node: Node;
  }) => void;
  onCollapseRowsAll?: (hierarchyCollapse: boolean) => void;
  onSelected?: (cells: any[]) => void;
  onDataCellClick?: (data: TargetCellInfo) => void;
  getSpreadSheet?: (spreadsheet: SpreadSheet) => void;
}
