/** * @fractary/core - Docs Manager * * Documentation management and organization. */ import { Doc, DocFormat, DocMetadata, DocSearchQuery, DocsManagerConfig } from './types'; /** * Documentation Manager - Create, manage, and search documentation */ export declare class DocsManager { private docsDir; private defaultFormat; private metadataMode; constructor(config: DocsManagerConfig); private ensureDir; private getDocPath; private getMetadataPath; private getFileExtension; /** * Determine the effective metadata mode for a document format * Frontmatter only makes sense for markdown files */ private getEffectiveMetadataMode; /** * Parse frontmatter from markdown content */ private parseFrontmatter; /** * Write frontmatter to markdown content */ private writeFrontmatter; /** * Extract body content from content that may have frontmatter */ private extractBody; /** * Create a new document * @param id - Document identifier * @param content - Document body content (without frontmatter) * @param metadata - Document metadata * @param format - Document format (default: markdown) */ createDoc(id: string, content: string, metadata: DocMetadata, format?: DocFormat): Promise; /** * Get a document by ID * Supports both frontmatter and sidecar metadata modes */ getDoc(id: string): Promise; /** * Update a document * @param id - Document identifier * @param content - New body content (without frontmatter) * @param metadata - Metadata fields to update (merged with existing) */ updateDoc(id: string, content: string, metadata?: Partial): Promise; /** * Delete a document * Removes both the document file and any sidecar metadata file if it exists */ deleteDoc(id: string): Promise; /** * List all documents */ listDocs(): Promise; /** * Search documents */ searchDocs(query: DocSearchQuery): Promise; /** * Check if a document exists */ docExists(id: string): Promise; } //# sourceMappingURL=manager.d.ts.map