import type { Column, ExcelCopyBufferOption, SlickPlugin } from '../models/index.js'; import type { SlickGrid } from '../slick.grid.js'; import { SlickEvent as SlickEvent_, type SlickEventData, SlickEventHandler as SlickEventHandler_, SlickRange as SlickRange_ } from '../slick.core.js'; /*** This manager enables users to copy/paste data from/to an external Spreadsheet application such as MS-Excel® or OpenOffice-Spreadsheet. The clipboard transport is the asynchronous Clipboard API (navigator.clipboard), which requires a secure context (https or localhost) and, for paste, the browser's clipboard-read permission. The clipboardWriteOverride/clipboardReadOverride options replace the transport for environments where the Clipboard API is unavailable or the host application manages the clipboard itself. options: copiedCellStyle : sets the css className used for copied cells. default : "copied" copiedCellStyleLayerKey : sets the layer key for setting css values of copied cells. default : "copy-manager" dataItemColumnValueExtractor : option to specify a custom column value extractor function dataItemColumnValueSetter : option to specify a custom column value setter function clipboardCommandHandler : option to specify a custom handler for paste actions includeHeaderWhenCopying : set to true and the plugin will take the name property from each column (which is usually what appears in your header) and put that as the first row of the text that's copied to the clipboard clipboardWriteOverride: option to replace the default clipboard write (navigator.clipboard.writeText) with a custom function clipboardReadOverride: option to replace the default clipboard read (navigator.clipboard.readText) with a custom function onCopyInit: optional handler to run when copy action initializes onCopySuccess: optional handler to run when copy action is complete newRowCreator: function to add rows to table if paste overflows bottom of table, if this function is not provided new rows will be ignored. readOnlyMode: suppresses paste headerColumnValueExtractor : option to specify a custom column header value extractor function */ export declare class SlickCellExternalCopyManager implements SlickPlugin { pluginName: "CellExternalCopyManager"; onCopyCells: SlickEvent_<{ ranges: SlickRange_[]; }>; onCopyCancelled: SlickEvent_<{ ranges: SlickRange_[]; }>; onPasteCells: SlickEvent_<{ ranges: SlickRange_[]; }>; protected _eventHandler: SlickEventHandler_; protected _grid: SlickGrid; protected _copiedRanges: SlickRange_[] | null; protected _clearCopyTI?: number; protected _copiedCellStyle: string; protected _copiedCellStyleLayerKey: string; protected _onCopyInit?: () => void; protected _onCopySuccess?: (rowCount: number) => void; protected _options: ExcelCopyBufferOption; constructor(options: ExcelCopyBufferOption); init(grid: SlickGrid): void; destroy(): void; protected getHeaderValueForColumn(columnDef: Column): string; protected getDataItemValueForColumn(item: any, columnDef: Column, event: SlickEventData): string; protected setDataItemValueForColumn(item: any, columnDef: Column, value: string): null | string | void; protected _decodeTabularData(grid: SlickGrid, clipText: string): void; protected handleKeyDown(e: SlickEventData): Promise; protected markCopySelection(ranges: SlickRange_[]): void; clearCopySelection(): void; setIncludeHeaderWhenCopying(includeHeaderWhenCopying: boolean): void; } //# sourceMappingURL=slick.cellexternalcopymanager.d.ts.map