/** * Document Approval Workflow * * Handles interactive approval for document creation, * displaying previews and allowing user modifications. */ import { type ClarificationResult, type DocumentApprovalResult, type DocumentDefinition, type DocumentDetectionResult } from '../types/document.types.js'; export declare class DocumentApprovalWorkflow { private readonly color; private readonly console; private readonly logger; private readonly promptAdapter; private readonly renderer; /** * Request user approval for document creation */ requestApproval(document: DocumentDefinition, targetPath: string): Promise; /** * Display formatted document preview */ private displayPreview; /** * Prompt user for approval decision */ private promptForApproval; /** * Handle edit flow for category/path modification */ private handleEditFlow; /** * Display detection result for user context */ displayDetectionInfo(detection: DocumentDetectionResult): void; /** * Display success message after document save */ displaySuccess(path: string, isUpdate: boolean): void; /** * Display error message */ displayError(error: string): void; /** * Quick approval for auto-approve mode (just shows summary) */ displayAutoApproveInfo(document: DocumentDefinition, targetPath: string): void; /** * Check if confidence is sufficient to offer save */ isConfidenceSufficient(confidence: number): boolean; /** * Check if confidence is too low to proceed at all */ isConfidenceTooLow(confidence: number): boolean; /** * Display low-confidence warning */ displayLowConfidenceWarning(detection: DocumentDetectionResult): void; /** * Display rejection message for very low confidence */ displayRejectionMessage(detection: DocumentDetectionResult): void; /** * Display comprehensive summary when document is not created */ displaySkippedSummary(detection: DocumentDetectionResult, commandName: string): void; /** * Ask clarifying questions to improve confidence */ askClarifyingQuestions(detection: DocumentDetectionResult): Promise; } //# sourceMappingURL=document-approval.d.ts.map