///
import { ICell } from './model';
interface ISetCellTextOptions {
/**
* @description 是否移除 active 状态
* @default true
*/
removeActive?: boolean;
/**
* @description 是否移除 editing 状态
* @default true
*/
removeEditing?: boolean;
}
declare type ISetCellsText = (uuids: string[], text: string, options?: ISetCellTextOptions) => void;
declare type ISetCellsActive = (uuids: string[], options?: {
active?: boolean;
}) => void;
declare type ISetCellsEditing = (uuids: string[], options?: {
editing?: boolean;
}) => void;
declare type ISetCellsHighlight = (indexList: {
rowIndex: number;
colIndex: number;
}[]) => void;
declare type IUseDataTableReturnType = [
ICell[][],
{
setCells: React.Dispatch>;
setCellsText: ISetCellsText;
setCellsActive: ISetCellsActive;
setCellsEditing: ISetCellsEditing;
setCellsHighlight: ISetCellsHighlight;
}
];
export declare function useDataTable(defaultCells: ICell[][]): IUseDataTableReturnType;
export {};