UNPKG

loccon

Version:

A simple local context storage and management tool with CLI and web interfaces. Store, search, and organize code snippets, notes, and development contexts with sharded JSON storage.

19 lines 862 B
import { ContextEntry, SearchResult } from '../types'; export declare class StorageManager { private storagePath; private shardManager; private indexManager; private lock; constructor(storagePath: string); static create(customStoragePath?: string): Promise<StorageManager>; addContext(tag: string, content: string, categories?: string[]): Promise<void>; readContext(tag: string): Promise<ContextEntry | null>; updateContext(tag: string, content: string, categories?: string[]): Promise<void>; removeContext(tag: string): Promise<boolean>; listAllTags(): Promise<string[]>; getAllContexts(): Promise<Record<string, ContextEntry>>; searchContexts(query: string, useFuzzy?: boolean): Promise<SearchResult[]>; rebuildIndex(): Promise<void>; getStoragePath(): string; } //# sourceMappingURL=storage.d.ts.map