/** * Document Writer Service * * Handles writing documents to the knowledge-base with * validation, backup, and update capabilities. */ import type { DocumentCategory, DocumentDefinition, DocumentType, DocumentWriteResult } from '../types/document.types.js'; import type { DocumentPathResolverService } from './document-path-resolver.service.js'; export declare class DocumentWriterService { private readonly logger; private readonly pathResolver; constructor(pathResolver: DocumentPathResolverService); /** * Write a document to the knowledge-base */ write(document: DocumentDefinition): DocumentWriteResult; /** * Write to a custom path */ writeToPath(content: string, customPath: string): DocumentWriteResult; /** * Ensure directory exists, create if needed */ private ensureDirectory; /** * Create backup of existing document */ private createBackup; /** * Get path resolver for external access */ getPathResolver(): DocumentPathResolverService; /** * Check if document exists */ exists(type: DocumentType, category: DocumentCategory): boolean; /** * Get existing document content */ getExisting(type: DocumentType, category: DocumentCategory): null | string; } //# sourceMappingURL=document-writer.service.d.ts.map