import { e as IdempotencyStore } from '../types-CI-upMvQ.cjs'; import 'hono'; /** Minimal KVNamespace subset used by kvStore (avoids @cloudflare/workers-types dependency). */ interface KVNamespaceLike { get(key: string, options: { type: "json"; }): Promise; put(key: string, value: string, options?: { expirationTtl?: number; }): Promise; delete(key: string): Promise; } interface KVStoreOptions { /** Cloudflare Workers KV namespace binding. */ namespace: KVNamespaceLike; /** TTL in seconds (default: 86400 = 24h). KV minimum is 60 seconds. */ ttl?: number; } /** * KV is eventually consistent — lock() uses write-first with read-back * verification for best-effort race detection but cannot guarantee atomicity. * For strict concurrency guarantees, use d1Store or durableObjectStore. */ declare function kvStore(options: KVStoreOptions): IdempotencyStore; export { type KVNamespaceLike, type KVStoreOptions, kvStore };