import { IPaintCommand, IPaintObjectDesigner, PaintCommandName } from "./types"; /** * Utility class for serializing and deserializing arrays of paint commands. */ export declare class PaintCommandSerializer { static cachedImages: any; /** * Serializes an array of commands to a JSON string. * Only commands that support serialization will be included. * @param commands The array of commands to serialize. * @returns A JSON string representing the serializable commands. */ static serializeCommands(commands: IPaintCommand[]): string; /** * Deserializes an array of commands from a JSON string. * @param {string} data - The JSON string containing serialized commands. * @returns {Promise} An array of deserialized commands. */ static deserializeCommands(data: string, toolbar: any): Promise; /** * Creates a command instance based on the command name. * @param {PaintCommandName} name - The name/type of the command to create. * @param {any} cmdData - The data needed to initialize the command. * @returns {IPaintCommand | null} The created command or null if unknown type. */ static createCommand(name: PaintCommandName, cmdData: any, toolbar: any): IPaintCommand | null; static getCommandFromDesigner(objectDesigner: IPaintObjectDesigner): IPaintCommand; }