import { IStoreState, IRow, ID } from '../../index.data'; import { IRowWithCell } from '../..'; import { Store } from 'unistore'; import { SpreadSheetRuntime } from '../../RuntimeContext'; export declare function insertRow(state: IStoreState, baseI: number, rowsToInsert: IRowWithCell[], runtime: SpreadSheetRuntime): { rows: IRow[]; cells: Record; cellDeps: Record; varDeps: Record; }; export declare function moveRow(state: IStoreState, type: 'up' | 'down', rowIndexes: number[]): { rows: IRow[]; } | null; export declare function deleteRow(state: IStoreState, fromIndex: number, toIndex: number, runtime: SpreadSheetRuntime): { rows: IRow[]; cells: Record; cellDeps: Record; varDeps: Record; }; /** * @params state * @params prevIndex 表示插入行的 前一行 * @params insertIds */ export declare function inferHostRowsByInsert(state: IStoreState, prevIndex: number, insertIds: ID[]): ID[]; export declare function inferHostRowsByDelete(state: IStoreState, fromIndex: number, toIndex: number): ID[]; export declare function ensureSelectionWhenDelete(store: Store, deleteIds: ID[], runtime: SpreadSheetRuntime, action: any): void; export declare function deleteRowOperation(store: Store, deleteI: number[], runtime: SpreadSheetRuntime): void;