import { RenderTemplate } from "./types/index.js"; import { ParsedArguments } from "./utils/argumentParser.js"; /** * JSON-driven printer application */ export declare class JsonPrinterApp { private readonly logger; private readonly imageProcessor; private readonly printerService; private readonly templateService; private readonly parsedArgs?; constructor(parsedArgs?: ParsedArguments); /** * Core rendering logic shared between print and render-only modes */ private renderTemplate; private handleConnection; /** * Generic method to execute operations with template */ private executeWithTemplate; /** * Perform print operation with printer connection */ private performPrint; /** * Perform render-only operation (no printer) */ private performRenderOnly; run(templateName: string, variables?: Record): Promise; runWithFile(templateFilePath: string, variables?: Record): Promise; runWithTemplate(template: RenderTemplate | object, variables?: Record): Promise; /** * Render template to image only (no printer connection) */ renderOnly(templateName: string, variables?: Record): Promise; /** * Render template file to image only (no printer connection) */ renderFileOnly(templateFilePath: string, variables?: Record): Promise; private setupProcessHandlers; }