declare type DataType = 'Object' | 'Array' | 'Null' | 'Number' | 'String' | 'Boolean' | 'Undefined' | 'Function' | 'Symbol' | 'File' | 'FileList' | 'Date' | 'RegExp' | 'ErrorEvent' | 'Event' | 'BigInt' | 'Window' | 'Element' | 'NodeList' | 'Map' | 'Set' | 'Error'; export interface ErrFileInfo { lineno: number; colno: number; path: string; } export interface ErrInfo { message: string; stack: string; errFileInfos: ErrFileInfo[]; } /** * 获取数据类型 * @param data * @returns {string} Object Array Function Null .... */ export declare function getDataType(data: any): DataType; export declare function stackStringGetNo(stackStr: string): ErrFileInfo[]; export declare function toJsonBase(this: any): any; export declare function file2Json(this: File): { lastModified: number; name: string; size: number; type: string; webkitRelativePath: string; }; export declare function fileList2Json(this: FileList): File[]; export declare function ErrorEvent2Json(this: ErrorEvent): ErrInfo; export declare function element2Json(this: Element): string; export declare function nodeList2Json(this: NodeList): Node[]; export declare function map2Json(this: Map): any; export declare function set2Json(this: Set): any[]; export declare function formData2Json(this: FormData): { [k: string]: FormDataEntryValue; }; export declare function event2Json(this: Event): { html: any; sourceUrl: any; }; export declare function promiseRejectionEvent2Json(this: PromiseRejectionEvent): ErrInfo; export declare function err2Json(this: Error): ErrInfo; export declare function setPrototype(structureFun: any, key: string, v: any): void; export declare function prototypeAddToJSON(): void; export declare function try2Json(data: any, errStr?: string): string; export declare function data2VisualStr(data: any): string; export {};