export interface IJSONParserOptions { /** * Reverses the order of items when the parsed data is an array. */ reverse?: boolean; } /** * Parses a JSON string into data. * * @see {@link https://www.amcharts.com/docs/v5/concepts/data/#Parsing} for more info * @important */ export declare class JSONParser { /** * Parses a JSON string. An array or object is returned as it is, and * invalid JSON gives `undefined`. * * @param input JSON * @param options Options * @return Data */ static parse(input: string, options?: IJSONParserOptions): any; protected static _applyDefaults(options?: IJSONParserOptions): IJSONParserOptions; } export interface ICSVParserOptions { /** * Character that separates the columns. * * @default "," */ delimiter?: string; /** * Returns the rows in reverse order. */ reverse?: boolean; /** * Number of rows to skip at the start. * * @default 0 */ skipRows?: number; /** * Leaves out empty rows. * * @default true */ skipEmpty?: boolean; /** * Uses the first row (after `skipRows`) as field names. Otherwise the * fields are named `col0`, `col1`, and so on. * * @default false */ useColumnNames?: boolean; } /** * Parses a CSV string into data. * * @see {@link https://www.amcharts.com/docs/v5/concepts/data/#Parsing} for more info * @important */ export declare class CSVParser { /** * Parses a CSV string into an array of objects, one per row. All values * are strings. * * @param input CSV * @param options Options * @return Data */ static parse(input: string, options?: ICSVParserOptions): any; /** * @ignore */ static CSVToArray(data: string, delimiter: string): any[]; protected static _applyDefaults(options?: ICSVParserOptions): ICSVParserOptions; } //# sourceMappingURL=DataParser.d.ts.map