import type { Client } from "../kernel.js"; import type { LiveChangesOptions, LiveChangesPage, LiveEvent, LiveSubscribeOptions, LiveSubscription } from "./live.types.js"; export declare class Live { private readonly client; constructor(client: Client); /** `GET /live/v1/changes` — hints since `cursor`, or hold up to `wait` seconds for the first one. */ changes(projectId: string, opts: LiveChangesOptions): Promise; /** * `GET /live/v1` as a reconnecting SSE subscription. `onEvent` receives * `ready`, `change`, `resync`, `reconnect` (server-side lifetime close, the * loop reconnects) and `disconnected` (a retryable failure; the loop backs * off and retries). A non-retryable refusal (403 TABLE_NOT_LIVE, 401, 400) * rejects `done` with the gateway's error envelope, as `request` would. */ subscribe(projectId: string, opts: LiveSubscribeOptions, onEvent: (event: LiveEvent) => void): LiveSubscription; } //# sourceMappingURL=live.d.ts.map