import { QueueService } from './queue.service'; import { MessageRepository } from '../../infrastructure/repositories/message.repository'; import { LogRepository } from '../../infrastructure/repositories/log.repository'; import { FileSystemAdapter } from '../../infrastructure/adapters/filesystem.adapter'; /** * Application Service * Main orchestrator for engraving job message processing workflow. * Receives messages from queue and creates JSON files for engraving. */ export declare class ApplicationService { private queueService; private messageRepository; private logRepository; private fileSystemAdapter; constructor(queueService: QueueService, messageRepository: MessageRepository, logRepository: LogRepository, fileSystemAdapter: FileSystemAdapter); /** * Processes the next message from the queue * @returns true if a message was processed, false if queue is empty */ processNextMessage(): Promise; /** * Processes a specific message (used when message is pre-fetched) * Creates a JSON file for the engraving job. * @param queueMessage - The PGMQ message to process * @returns true if processed successfully */ processMessage(queueMessage: any): Promise; /** * Creates the engraving JSON file in the target folder. * @param message - The message entity containing engraving data * @param fileName - The file name to use for the JSON file * @returns Result object with success status, file path, and size or error */ private createEngravingJsonFile; /** * Logs an info message */ private logInfo; /** * Logs an error message */ private logError; } //# sourceMappingURL=application.service.d.ts.map