export declare const parseFile: (file: File) => Promise; /** * * @param contents Windows 风格的换行符是 \r\n,而 Linux 和 macOS 使用的是 \n。 * @returns // 统一将行结束符转换为 \n */ export declare function uniformedText(contents: any): any; export declare function extractHeaderAndDelimiter(contents: string): { header: any[]; quoting: boolean; delimiter: string; }; export declare function detectDataTypes(dataLines: any, columnCount: any): any[]; export declare function isBoolean(value: any): boolean; export declare function isNumber(value: any): boolean; export declare function getFileSize(size: any): string; export interface IMeta { header: string[]; delimiter: string; size: string; name: string; type: 'csv' | 'json' | 'sql'; graphFields: { idField: string; type: 'Vertex' | 'Edge'; sourceField?: string; targetField?: string; nodeLabelField?: string; edgeLabelField?: string; }; } export interface ParsedFile { id: string; meta: IMeta; contents: string; } export declare const parseCSV: (file: File) => Promise; /** * * @param contents * @param header * @param delimiter * @returns */ export declare function covertCSV2JSON(contents: string, header: string[], delimiter: string): any;