/** * Incremental Loader * * Lazy loading with LRU cache for efficient resource management. * Used for skills, context files, and other resources. */ export interface LoaderConfig { maxCache: number; ttl?: number; onEvict?: (key: string, value: unknown) => void; } /** * Generic incremental loader with LRU cache */ export declare class IncrementalLoader { private loader; private cache; private accessOrder; private config; constructor(loader: (key: string) => Promise | T, config?: Partial); /** * Get a value, loading if not cached */ get(key: string): Promise; /** * Check if key is cached (without loading) */ has(key: string): boolean; /** * Invalidate a specific key */ invalidate(key: string): void; /** * Clear all cached values */ clear(): void; /** * Preload multiple keys */ preload(keys: string[]): Promise; /** * Get cache statistics */ getStats(): { size: number; maxSize: number; cachedKeys: string[]; }; private updateAccessOrder; private evictOldest; } /** * Skill template loader with incremental loading */ export declare class SkillLoader extends IncrementalLoader { constructor(); } /** * Context file loader with incremental loading */ export declare class ContextLoader extends IncrementalLoader { constructor(projectRoot: string); } /** * MCP tool loader with incremental loading */ export declare class McpToolLoader extends IncrementalLoader { constructor(); }