mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
14 lines • 581 B
TypeScript
export declare class MCardStore {
private dbPromise;
constructor(dbName?: string);
putCard(hash: string, content: any): Promise<void>;
getCard(hash: string): Promise<any | undefined>;
setHandle(handle: string, newHash: string): Promise<void>;
resolveHandle(handle: string): Promise<any | undefined>;
getHandleHistory(handle: string): Promise<any[]>;
getHandlesByHash(hash: string): Promise<any[]>;
getAllCards(): Promise<any[]>;
getAllHandles(): Promise<any[]>;
getAllHistory(): Promise<any[]>;
}
//# sourceMappingURL=MCardStore.d.ts.map