import type { GameBackendClient } from './BackendClient.js'; type RecordValue = Record; export type DataFilterValue = string | number | boolean; export interface DataListOptions { limit?: number; cursor?: string; filter?: Record; sort?: string; order?: 'asc' | 'desc'; signal?: AbortSignal; } export interface GameDataPage { items: T[]; nextCursor: string | null; } export interface GameDataWriteOptions { expectedVersion?: number; signal?: AbortSignal; } export declare class GameDataCollection> { private readonly backend; readonly name: string; private readonly base; constructor(backend: GameBackendClient, name: string); create(value: Create, options?: { signal?: AbortSignal; }): Promise; get(id: string, options?: { signal?: AbortSignal; }): Promise; list(options?: DataListOptions): Promise>; update(id: string, patch: Partial, options?: GameDataWriteOptions): Promise; delete(id: string, options?: GameDataWriteOptions): Promise<{ deleted: true; id: string; }>; } /** Typed CRUD facade for a declarative `kind: data` game backend. */ export declare class GameDataClient { private readonly backend; private readonly collections; constructor(backend: GameBackendClient); collection>(name: string): GameDataCollection; } export {};