// Generated by bynkc — do not edit by hand.
// adapter bynk.cloudflare

import { Ok, Err, Some, None, type Result, type Option, type ValidationError, type JsonValue, type BoundaryError, type ServiceBinding, callService, boundaryError } from "../runtime.js";

/**
 * A Cloudflare Workers KV namespace: a key/value store with optional per-entry
 * expiry and prefix listing.
 */
export interface Kv {
  get(key: string): Promise<Option<string>>;
  put(key: string, value: string): Promise<void>;
  putTtl(key: string, value: string, ttlSeconds: number): Promise<void>;
  delete(key: string): Promise<void>;
  list(prefix: Option<string>): Promise<readonly string[]>;
}

export const KvToken: unique symbol = Symbol("Kv");

