import { Store } from "../store"; import { TChunkCell, cellId, TChunk, PageGetter, PASTE_MODE, MathSerialization, TBoxRange, CellUpdater, CellApplier, IValue, parseContext } from "../types"; export declare class CopyManager { private _store; private _pageGetter; constructor(store: Store, pageGetter: PageGetter); copy(from: cellId, to?: cellId): TChunk; /** * Pastes a chunk of data into a specified range of cells. */ paste(targetLeftTop: cellId, targetRightBottom: cellId, chunk?: TChunk, mode?: PASTE_MODE, handler?: CellUpdater): MathSerialization[]; /** * Pastes a chunk of data into a specified range of cells transposing rows and columns of the source chunk. */ pasteTransposed(targetLeftTop: cellId, targetRightBottom: cellId, chunk?: TChunk, mode?: PASTE_MODE, handler?: CellUpdater): MathSerialization[]; _doPaste(targetLeftTop: cellId, targetRightBottom: cellId, rChunk: number, cChunk: number, chunkData: TChunkCell[][], mode: PASTE_MODE, applyCell: CellApplier): MathSerialization[]; _addCellToPasteData(data: MathSerialization[], dataCell: MathSerialization, triggers: number[], r: number, c: number, p: number): void; clean(from: cellId, to: cellId, mode?: number): void; _refreshRelatedFormulas(ids: number[]): number[]; _serialize(from: cellId, to: cellId): TChunk; reset(): void; move(to: cellId, chunk?: TChunk): MathSerialization[]; _transposeChunkData(chunkData: TChunkCell[][], checkRange: TBoxRange, ctx?: parseContext): TChunkCell[][]; _updateRelatedFormulas(ids: number[], dr: number, dc: number, dp: number, chunkInfo: TBoxRange): number[]; _getTriggerCells(ids: number[]): MathSerialization[]; _getTriggersOutsideCutRange(triggerList: number[], chunkFromId: cellId, chunkR: number, chunkC: number): number[]; _updateCell(r: number, c: number, p: number, chunkCell: TChunkCell, dx: number, dy: number, handler: CellUpdater): MathSerialization | null; _updateCurrentCell(_current: IValue, update: IValue): IValue; _applyTransposedCell(r: number, c: number, p: number, chunkCell: TChunkCell, mathDelta: [number, number], cellDelta: [number, number], op: { cutRange: TBoxRange; ctxFrom: parseContext; ctxTo: parseContext; handler: CellUpdater; }): MathSerialization | null; fromCSV(text: string, rowSeparator?: string, columnSeparator?: string): TChunk; }