import { downloadFile } from './processors.js'; import { ExportType } from './types.js'; export interface IOption { data: object | string; fileName?: string; extension?: string; fileNameFormatter?: (name: string) => string; fields?: string[] | Record; exportType?: ExportType; replacer?: ((key: string, value: any) => any) | Array | null; space?: string | number; processor?: (content: string, type: ExportType, fileName: string) => R; withBOM?: boolean; beforeTableEncode?: (tableRow: Array<{ fieldName: string; fieldValues: string[]; }>) => Array<{ fieldName: string; fieldValues: string[]; }>; delimiter?: ',' | ';'; } declare function exportFromJSON({ data, fileName, extension, fileNameFormatter, fields, exportType, replacer, space, processor, withBOM, beforeTableEncode, delimiter, }: IOption): R; declare namespace exportFromJSON { var types: { html: "html"; json: "json"; txt: "txt"; csv: "csv"; xls: "xls"; xml: "xml"; css: "css"; }; var processors: { downloadFile: typeof downloadFile; }; } export default exportFromJSON;