/** * Generates the client-side `realtime.gen.ts`. * * `PikkuRealtime` mirrors the `PikkuRPC` pattern: it wraps the project's * generated `PikkuFetch` (so server URL + auth come from one place) and * exposes: * * - `subscribe(topic, handler)` / `unsubscribe(topic)` — typed pub/sub * over the websocket at `/events`. Multi-topic per connection. * - `subscribeToTopic(topic, handler)` — same shape but via SSE * (one EventSource per topic, auto-cleanup on close). * - `subscribeToSSE(path, handler)` — generic SSE subscribe for any * `sse: true` route (workflow streams, agent streams, etc.). * - `connectToChannel(channelRoute, protocols?)` — open a raw WebSocket * for any wireChannel route, ready to wrap in * `PikkuWebSocket<'channel-name'>` for typed subscribe/send. * * Topic types come from `EventHubTopics` if the user supplies an import * via `clientFiles.realtimeEventHubTopicsImport`. Otherwise topics fall * back to `Record`. */ export declare const serializeRealtimeClient: (topicsImport: string | undefined, fetchImportPath: string) => string;