/** * KV Admin (Console-plane operator surface). * * Distinct from the BaaS-plane `kv` namespace in `@sylphx/sdk` — that one * is customer-app runtime data-plane (`kv/*`); this one is operator * dashboard administration (`/kv/*` on the Platform API): * * GET /kv/status — service health for a customer project * GET /kv — list keys (prefix/cursor/limit) * GET /kv/stats — usage stats (count + bytes) * GET /kv/:key — read a value as operator * PUT /kv/:key — write a value as operator * DELETE /kv/:key — delete a value as operator * * Always scoped to a customer project via the `projectId` query param. * The BaaS `kv` namespace must NOT be confused with this surface — see * ADR-083 plane discipline. */ import type { Client } from './client.js'; export interface KvStatus { readonly available: boolean; readonly error?: string; } export interface KvKeyListEntry { readonly key: string; readonly bytes: number; readonly ttlSeconds: number | null; readonly updatedAt: string; } export interface KvListResult { readonly keys: readonly KvKeyListEntry[]; readonly cursor: string | null; } export interface KvStats { readonly count: number; readonly bytes: number; } export interface KvGetResult { readonly value: string | null; readonly ttlSeconds: number | null; readonly updatedAt: string | null; } export interface KvSetInput { readonly value: string; readonly ttlSeconds?: number | null; } export interface KvSetResult { readonly key: string; readonly updatedAt: string; } export declare const getStatus: (client: Client, projectId: string) => Promise; export interface ListOptions { readonly prefix?: string; readonly cursor?: string; readonly limit?: number; } export declare const list: (client: Client, projectId: string, options?: ListOptions) => Promise; export declare const getStats: (client: Client, projectId: string) => Promise; export declare const get: (client: Client, projectId: string, key: string) => Promise; export declare const set: (client: Client, projectId: string, key: string, input: KvSetInput) => Promise; declare const _delete: (client: Client, projectId: string, key: string) => Promise<{ success: boolean; }>; export { _delete as delete }; //# sourceMappingURL=kv.d.ts.map