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.
14 lines • 560 B
TypeScript
import { ContextDatabase } from '../types';
export declare class ShardManager {
private storagePath;
constructor(storagePath: string);
private getMetadata;
private saveMetadata;
getCurrentShard(): Promise<string>;
createNewShard(): Promise<string>;
loadShard(shardId: string): Promise<ContextDatabase>;
saveShard(shardData: ContextDatabase): Promise<void>;
getAllShardIds(): Promise<string[]>;
checkShardCapacity(shardId: string, additionalContent: string): Promise<boolean>;
}
//# sourceMappingURL=shardManager.d.ts.map