UNPKG

kist

Version:

Package Pipeline Processor

33 lines (32 loc) 1.11 kB
import { Action } from "../../core/pipeline/Action"; import { ActionOptionsType } from "../../types/ActionOptionsType"; /** * SvgReaderAction is responsible for reading SVG file contents and * making them available for further processing in the pipeline. */ export declare class SvgReaderAction extends Action { private svgContent; /** * Executes the SVG reading action. * @param options - The options specifying the SVG file path. * @returns A Promise that resolves when the SVG file is successfully read. */ execute(options: ActionOptionsType): Promise<void>; /** * Reads the content of an SVG file asynchronously. * @param filePath The path to the SVG file. * @returns A promise that resolves to the SVG file content. */ private readSvg; /** * Retrieves the last read SVG content. * @returns The last read SVG content. */ getSvgContent(): string; /** * Provides a description of the action. * @returns A string description of the action. */ describe(): string; } export default SvgReaderAction;