import { SimpleShop } from "../repository.js"; import type { ShopRepositoryInterface } from "../repository.js"; import type { HttpClientTokenCacheInterface, HttpClientTokenCacheItem } from "../http-client.js"; /** * Cloudflare KV integration * @module */ export declare class CloudflareShopRepository implements ShopRepositoryInterface { private storage; constructor(storage: KVNamespace); createShop(id: string, url: string, secret: string): Promise; deleteShop(id: string): Promise; getShopById(id: string): Promise; updateShop(shop: SimpleShop): Promise; protected serializeShop(shop: SimpleShop): string; protected deserializeShop(data: (string | null)[]): SimpleShop; } /** * Cloudflare KV implementation for HttpClientTokenCacheInterface * @module */ export declare class CloudflareHttpClientTokenCache implements HttpClientTokenCacheInterface { private storage; constructor(storage: KVNamespace); /** * Get a token from KV storage for the given shop ID */ getToken(shopId: string): Promise; /** * Store a token in KV storage for the given shop ID */ setToken(shopId: string, token: HttpClientTokenCacheItem): Promise; /** * Remove a token from KV storage for the given shop ID */ clearToken(shopId: string): Promise; } //# sourceMappingURL=cloudflare-kv.d.ts.map