/** * Pending Write Approver Service * * Handles user confirmation flow for pending file writes. * Extracted from ToolExecutionService to reduce complexity. */ import type { ColorAdapter } from '../../output/color-adapter.interface.js'; import type { ConsoleOutput } from '../../output/console-output.js'; import type { Logger } from '../../output/logger.js'; import type { PromptAdapter } from '../../ui/prompt-adapter.interface.js'; /** * Represents a file pending write confirmation */ export interface PendingWrite { content: string; fullPath: string; path: string; } /** * Result of flush operation */ export interface FlushResult { skipped: number; written: number; } /** * Service to handle pending write confirmation flow */ export declare class PendingWriteApproverService { private readonly console; private readonly color; private readonly promptAdapter; private readonly logger; constructor(console: ConsoleOutput, color: ColorAdapter, promptAdapter: PromptAdapter, logger: Logger); /** * Process pending writes with user confirmation */ flush(pendingWrites: PendingWrite[]): Promise; /** * Display summary of pending writes */ private displaySummary; /** * Prompt for batch decision */ private promptBatchDecision; /** * Process the batch decision */ private processBatchDecision; /** * Write all pending files */ private writeAllFiles; /** * Skip all pending files */ private skipAllFiles; /** * Review each file individually */ private reviewFilesIndividually; /** * Process a single file in review mode */ private processIndividualFile; /** * Write a single file */ private writeSingleFile; /** * Display file preview */ private displayFilePreview; /** * Prompt for file decision */ private promptFileDecision; /** * Display flush result */ private displayResult; } //# sourceMappingURL=pending-write-approver.service.d.ts.map