import { Entity, IEntitySettings, IEntityPrivate, IEntityEvents } from "./Entity"; export interface IDataProcessorSettings extends IEntitySettings { /** * Format of the string dates in `dateFields`, such as `"yyyy-MM-dd"`. * Without it, strings are read by the browser's `Date`, which takes a * date-only string such as `"2024-03-15"` as midnight UTC. */ dateFormat?: string; /** * Data fields to convert to timestamps. A nested field is written as a * path, such as `"values.date"`. */ dateFields?: string[]; /** * Data fields to convert to numbers. A nested field is written as a path, * such as `"values.value"`. */ numericFields?: string[]; /** * Data fields to convert to [[Color]] objects. A nested field is written as * a path, such as `"values.color"`. */ colorFields?: string[]; /** * Replaces empty values (`null`, `undefined` or `""`) in any field with * this value. */ emptyAs?: any; } export interface IDataProcessorPrivate extends IEntityPrivate { /** * @ignore */ deepFields?: string[]; } export interface IDataProcessorEvents extends IEntityEvents { } /** * Converts data values, such as string dates and numbers, as data is added to * a component. * * @see {@link https://www.amcharts.com/docs/v5/concepts/data/#Pre_processing_data} for more info * @important */ export declare class DataProcessor extends Entity { _settings: IDataProcessorSettings; _privateSettings: IDataProcessorPrivate; protected _checkDates: boolean; protected _checkNumbers: boolean; protected _checkColors: boolean; protected _checkEmpty: boolean; protected _checkDeep: boolean; protected _afterNew(): void; protected _checkFeatures(): void; protected _checkDeepFeatures(): void; /** * Processes every row of `data`. Changes the objects in place. * * @param data Data rows */ processMany(data: { [index: string]: any; }[]): void; /** * Processes one row (object) of data. Changes the object in place. * * @param row Data row * @param prefix Path of the row inside a parent row, used for nested fields */ processRow(row: { [index: string]: any; }, prefix?: string): void; protected _maybeToNumber(field: string, value: any): any; protected _maybeToDate(field: string, value: any): any; protected _maybeToEmpty(value: any): any; protected _maybeToColor(field: string, value: any): any; } //# sourceMappingURL=DataProcessor.d.ts.map