import { KVNamespace } from '@cloudflare/workers-types';
import { CacheBackend } from './index.js';

/**
 * Cloudflare KV adapter. TTL is whole seconds via `expirationTtl`.
 * CF KV enforces a 60-second minimum TTL — values below that surface CF's own
 * error; this adapter does not silently clamp.
 */
declare function createKvBackend(kv: KVNamespace): CacheBackend;

export { createKvBackend };
