UNPKG

@tableau/taco-toolkit

Version:
14 lines (13 loc) 533 B
import { DataRow } from '../../../../shared/types/data-row'; import { SandboxPlugin } from '../sandbox-plugin'; import SandboxVM from '../../sandbox-vm'; export declare class CsvUtilsPlugin extends SandboxPlugin { registerClass(sandbox: SandboxVM): void; } export declare function parse(rawData: ArrayBuffer | string, options: { hasHeader: boolean; }): Promise<{ rows: string[][]; headers: string[] | undefined; }>; export declare function createDataRows(rows: string[][], columnNames: string[]): Promise<DataRow[]>;