import { NonceCache } from "@kya-os/contracts/handshake"; /** * Cloudflare KV namespace interface */ interface KVNamespace { get(key: string, options?: { type?: string; }): Promise; getWithMetadata?(key: string): Promise<{ value: string | null; metadata?: unknown; }>; put(key: string, value: string, options?: { expirationTtl?: number; }): Promise; delete(key: string): Promise; } /** * Cloudflare KV-based nonce cache implementation * Suitable for Cloudflare Workers deployments */ export declare class CloudflareKVNonceCache implements NonceCache { private kv; private keyPrefix; constructor(kv: KVNamespace, keyPrefix?: string); private getKey; has(nonce: string, agentDid?: string): Promise; add(nonce: string, ttl: number, agentDid?: string): Promise; cleanup(): Promise; } export {};