/** * Local per-user credential store with in-memory storage (TC-NearZK fallback). * * This is the local/stdio fallback. Cloudflare HTTP deployments select the * durable `PerSubCredStore` from `cred-store.ts`; this implementation remains * process-local and restart clears all credentials. * * Trust model: server admin (n24q02m operator) can dump live memory via * debugger but no persistent file = no FS-dump compromise + no admin * recovery from disk. */ export interface CredentialPayload { [key: string]: unknown; } /** * Common interface satisfied by both the in-memory store (stdio / local * single-process) and the KV write-through `PerSubCredStore` (Cloudflare * deploy), so the HTTP transport can select either without branching on the * concrete type. `ready` is optional (KV-only startup probe). */ export interface CredStoreLike { save(sub: string, creds: CredentialPayload): Promise; load(sub: string): Promise; clear(sub: string): Promise; listSubs(): Promise; ready?(): Promise; } export declare class InMemoryCredStore implements CredStoreLike { private store; save(sub: string, creds: CredentialPayload): Promise; load(sub: string): Promise; clear(sub: string): Promise; listSubs(): Promise; } //# sourceMappingURL=in-memory-cred-store.d.ts.map