import type { State } from "../../state.ts"; export declare namespace DOStateStoreAPI { type API = { validate: { method: "validate"; params: null; result: null; }; get: { method: "get"; params: { key: string; }; result: string | undefined; }; getBatch: { method: "getBatch"; params: { keys: string[]; }; result: Record; }; all: { method: "all"; params: { prefix: string; }; result: Record; }; set: { method: "set"; params: { key: string; value: State; }; result: null; }; delete: { method: "delete"; params: { key: string; }; result: null; }; list: { method: "list"; params: { prefix: string; }; result: string[]; }; count: { method: "count"; params: { prefix: string; }; result: number; }; }; interface Context { app: string; stage: string; } type Request = { [K in keyof API]: { method: K; params: API[K]["params"]; }; }[keyof API]; interface SuccessResponse { success: true; status: number; result: API[T]["result"]; } interface ErrorResponse { success: false; status: number; error: string; } type Response = SuccessResponse | ErrorResponse; } //# sourceMappingURL=api.d.ts.map