/** * Context storage implementation for Universal Context Management System * Stores contexts in filesystem with index for fast lookups */ import 'reflect-metadata'; import type { Context, ContextSource, ContextType } from '../types/context.js'; export declare class ContextStore { private basePath; private index; private indexLoaded; constructor(basePath?: string); /** * Initialize storage directories */ initialize(): Promise; /** * Save a context */ save(context: Context): Promise; /** * Get context by ID */ getById(id: string): Promise; /** * Get context by name */ getByName(name: string): Promise; /** * Search contexts (keyword-based) */ search(query: string, filters?: { source?: ContextSource | 'all'; type?: ContextType | 'all'; tags?: string[]; category?: string; }): Promise; /** * List all contexts */ list(filters?: { source?: ContextSource | 'all'; type?: ContextType | 'all'; tags?: string[]; category?: string; }): Promise; /** * Update context */ update(context: Context): Promise; /** * Delete context */ delete(id: string): Promise; /** * Get storage path for a context */ private getStoragePath; /** * Load context from file */ private loadContext; /** * Load index from disk */ private loadIndex; /** * Save index to disk */ private saveIndex; /** * Validate context before saving */ private validate; } //# sourceMappingURL=context-store.d.ts.map