import '@orpc/openapi/extensions/route'; import * as v from 'valibot'; import type { ResolvedAccess } from '../access.js'; import type { RealtimePublisher } from '../realtime/publisher.js'; type RealtimeRouterOptions = { heartbeatMs?: number; }; export declare function buildRealtimeApiRouter(publisher: RealtimePublisher | undefined, access: ResolvedAccess, options?: RealtimeRouterOptions): { realtime: { changes: import("@orpc/server").DecoratedProcedure, Record> & object, object, v.StrictObjectSchema<{ readonly tables: v.SchemaWithPipe, v.ArraySchema, undefined>], undefined>, v.TransformAction]>; }, undefined>, import("@orpc/contract").Schema, import("@orpc/client").AsyncIteratorClass<{ table: string; action: "create" | "update" | "delete"; record: { [x: string]: unknown; }; operationId?: string | undefined; } | { type: "heartbeat"; intervalMs: number; }, unknown, void>>, { readonly BAD_REQUEST: { readonly data: v.OptionalSchema, "BAD_REQUEST">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "BAD_REQUEST"; }>; }; readonly UNAUTHORIZED: { readonly data: v.OptionalSchema, "UNAUTHORIZED">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "UNAUTHORIZED"; }>; }; readonly FORBIDDEN: { readonly data: v.OptionalSchema, "FORBIDDEN">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "FORBIDDEN"; }>; }; readonly NOT_FOUND: { readonly data: v.OptionalSchema, "NOT_FOUND">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "NOT_FOUND"; }>; }; readonly CONFLICT: { readonly data: v.OptionalSchema, "CONFLICT">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "CONFLICT"; }>; }; readonly PAYLOAD_TOO_LARGE: { readonly data: v.OptionalSchema, "PAYLOAD_TOO_LARGE">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "PAYLOAD_TOO_LARGE"; }>; }; readonly TOO_MANY_REQUESTS: { readonly data: v.OptionalSchema, "TOO_MANY_REQUESTS">; readonly details: v.OptionalSchema; }, undefined>, { readonly code: "TOO_MANY_REQUESTS"; }>; }; }, never>; }; } | undefined; export type RealtimeApiRouter = NonNullable>; export {}; //# sourceMappingURL=realtime-router.d.ts.map