UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

37 lines (36 loc) 1.19 kB
import { type CopyAllDataParams, type CopyableList } from '../../../common/interface/export'; import type { SpreadSheet } from '../../../sheet-type'; export declare const getSelectedData: (spreadsheet: SpreadSheet) => CopyableList; export declare const asyncProcessAllSelected: (params: CopyAllDataParams) => Promise<CopyableList>; /** * 异步获取文本数据 (text/plain) * @example const data = await asyncGetAllPlainData({ sheetInstance: s2, split: '\t', formatOptions: true, }); */ export declare const asyncGetAllPlainData: (params: CopyAllDataParams) => Promise<string>; /** * 异步获取富文本数据 (text/html) * @example const data = await asyncGetAllHtmlData({ sheetInstance: s2, split: '\t', formatOptions: true, }); */ export declare const asyncGetAllHtmlData: (params: CopyAllDataParams) => Promise<string>; /** * 异步获取数据 * - 文本 (text/plain) * - 富文本 (text/html) * @example const data = await asyncGetAllData({ sheetInstance: s2, split: '\t', formatOptions: true, }); */ export declare const asyncGetAllData: (params: CopyAllDataParams) => Promise<CopyableList>;