import { Entity, IEntityEvents, IEntitySettings, IEntityPrivate } from "../../core/util/Entity"; export interface ISerializerSettings extends IEntitySettings { /** * An array of settings to not include in the serialized data. */ excludeSettings?: Array; /** * An array of settings to include in the serialized data. */ includeSettings?: Array; /** * Include full values of these settings. * * @since 6.4.3 */ fullSettings?: Array; /** * An array of properties to not include in the serialized data. * * @since 5.3.2 */ excludeProperties?: Array; /** * An array of properties to include in the serialized data. * * @ignore * @since 5.15.0 */ includeProperties?: Array; /** * Maximum depth of recursion when traversing target object. * * @default 2 */ maxDepth?: number; /** * Include states in the output. * * @default false * @since 5.15.0 */ includeStates?: boolean; /** * Include adapters in the output. * * @default false * @since 5.15.0 */ includeAdapters?: boolean; /** * Include events in the output. * * @since 5.15.0 * @default false * @todo implement * @ignore */ includeEvents?: boolean; /** * Serialize functions as strings or functions. * * @default "function" */ functionsAs?: "string" | "function"; } export interface ISerializerPrivate extends IEntityPrivate { } export interface ISerializerEvents extends IEntityEvents { } /** * Provides functionality to serialize charts or individual elements into simple * objects or JSON. * * @see {@link https://www.amcharts.com/docs/v5/concepts/serializing/} for more info * @since 5.3.0 */ export declare class Serializer extends Entity { static className: string; static classNames: Array; _settings: ISerializerSettings; _privateSettings: ISerializerPrivate; _events: ISerializerEvents; protected _refs: { [index: string]: any; }; /** * Serializes target object into a simple object or JSON string. * * @param source Target object * @param depth Current depth * @param full Serialize object in full (ignoring maxDepth) * @param forceParse If true, will add __parse to serialized objects * @return Serialized data */ serialize(source: unknown, depth?: number, full?: boolean, forceParse?: boolean): unknown; private _processAdapters; private _processStates; private _filterSettings; private _escapeRefs; } //# sourceMappingURL=Serializer.d.ts.map