import { AppEvent, AppEventEnvelope } from "@nextclaw/shared"; //#region src/types/nextclaw-realtime.types.d.ts type NextClawConnectionEvent = { type: "connection.open"; payload?: Record; } | { type: "connection.close"; payload?: Record; } | { type: "connection.error"; payload?: { message?: string; }; }; type NextClawRealtimeEvent = AppEvent | AppEventEnvelope | NextClawConnectionEvent; type NextClawWebSocketLike = { onopen: ((event: unknown) => void) | null; onmessage: ((event: { data?: unknown; }) => void) | null; onerror: ((event: unknown) => void) | null; onclose: ((event: unknown) => void) | null; close: (code?: number, reason?: string) => void; }; type NextClawRealtimeSubscription = { close: () => void; }; //#endregion export { NextClawRealtimeEvent, NextClawRealtimeSubscription, NextClawWebSocketLike }; //# sourceMappingURL=nextclaw-realtime.types.d.ts.map