import { DocumentCache } from './document-cache.js'; import { ResourceManager } from './resource-manager.js'; /** * Cache integration configuration */ export interface CacheIntegrationConfig { /** Enable/disable caching */ enabled: boolean; /** Enable/disable resource registration */ registerResources: boolean; /** Cache size limit (0 = unlimited) */ maxCacheSize: number; /** Enable/disable automatic LRU eviction */ autoEvict: boolean; } /** * Cache integration result */ export interface CacheIntegrationResult { /** Formatted content */ content: any; /** Whether content was served from cache */ fromCache: boolean; /** Cache key used */ cacheKey: string; /** Resource URI if registered */ resourceUri?: string; /** Any errors during caching/registration */ error?: string; } /** * Document type detection from URL and content */ export declare function detectDocumentType(url: string, content?: string): string; /** * Extract title from formatted content */ export declare function extractTitle(content: string): string; /** * Cache integration helper for markdown formatting functions */ export declare class CacheIntegration { private cache; private resourceManager; private config; constructor(cache: DocumentCache, resourceManager: ResourceManager, config?: Partial); /** * Cache-aware wrapper for markdown formatting functions */ cacheAwareFormat(url: string, formatFunction: () => any, options?: { skipCache?: boolean; }): Promise; /** * Get cache statistics */ getCacheStats(): import("./document-cache.js").CacheStats; /** * Get resource manager statistics */ getResourceStats(): import("./resource-manager.js").ResourceManagerStats; /** * Get configuration */ getConfig(): CacheIntegrationConfig; /** * Update configuration */ updateConfig(newConfig: Partial): void; /** * Clear cache and unregister all resources */ clearAll(): Promise; } //# sourceMappingURL=cache-integration.d.ts.map