import { z } from 'zod'; export declare const SubscribeEventSchema: z.ZodObject<{ type: z.ZodLiteral<"subscribe">; channels: z.ZodArray; }, z.core.$strip>; export type SubscribeEvent = z.infer; export declare const UnsubscribeEventSchema: z.ZodObject<{ type: z.ZodLiteral<"unsubscribe">; channels: z.ZodArray; }, z.core.$strip>; export type UnsubscribeEvent = z.infer; export declare const PingEventSchema: z.ZodObject<{ type: z.ZodLiteral<"ping">; }, z.core.$strip>; export type PingEvent = z.infer; export declare const ResyncEventSchema: z.ZodObject<{ type: z.ZodLiteral<"resync">; last_seen_seq: z.ZodNumber; since: z.ZodOptional; }, z.core.$strip>; export type ResyncEvent = z.infer; export declare const ClientEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"subscribe">; channels: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"unsubscribe">; channels: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"ping">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resync">; last_seen_seq: z.ZodNumber; since: z.ZodOptional; }, z.core.$strip>], "type">; export type ClientEvent = z.infer; export declare const ChannelMessagePayloadSchema: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodArray>; }, z.core.$strip>; export type ChannelMessagePayload = z.infer; export declare const MessageCreatedEventSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message.created">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>; export type MessageCreatedEvent = z.infer; export declare const MessageUpdatedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"message.updated">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; export type MessageUpdatedEvent = z.infer; export declare const ThreadReplyEventSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"thread.reply">; channel: z.ZodString; parent_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; export type ThreadReplyEvent = z.infer; export declare const MessageReactedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"message.reacted">; message_id: z.ZodString; emoji: z.ZodString; agent_name: z.ZodString; action: z.ZodOptional>; }, z.core.$strip>; export type MessageReactedEvent = z.infer; export declare const DmReceivedEventSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; export type DmReceivedEvent = z.infer; export declare const GroupDmReceivedEventSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"group_dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; export type GroupDmReceivedEvent = z.infer; export declare const AgentStatusActiveEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.active">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"active">; }, z.core.$strip>; export type AgentStatusActiveEvent = z.infer; export declare const AgentStatusIdleEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.idle">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"idle">; }, z.core.$strip>; export type AgentStatusIdleEvent = z.infer; export declare const AgentStatusBlockedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.blocked">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"blocked">; }, z.core.$strip>; export type AgentStatusBlockedEvent = z.infer; export declare const AgentStatusWaitingEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.waiting">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"waiting">; }, z.core.$strip>; export type AgentStatusWaitingEvent = z.infer; export declare const AgentStatusOfflineEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.offline">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"offline">; }, z.core.$strip>; export type AgentStatusOfflineEvent = z.infer; export declare const AgentStatusChangedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.status.changed">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodEnum<{ offline: "offline"; active: "active"; idle: "idle"; blocked: "blocked"; waiting: "waiting"; }>; }, z.core.$strip>; export type AgentStatusChangedEvent = z.infer; export declare const AgentExitedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"agent.exited">; agent_id: z.ZodString; agent_name: z.ZodString; node_id: z.ZodNullable; invocation_id: z.ZodNullable; reason: z.ZodEnum<{ deregistered: "deregistered"; missing_from_inventory: "missing_from_inventory"; released: "released"; }>; }, z.core.$strip>; export type AgentExitedEvent = z.infer; export declare const NodeStatusOnlineEventSchema: z.ZodObject<{ type: z.ZodLiteral<"node.status.online">; node_id: z.ZodString; node_name: z.ZodNullable; }, z.core.$strip>; export type NodeStatusOnlineEvent = z.infer; export declare const NodeStatusOfflineEventSchema: z.ZodObject<{ type: z.ZodLiteral<"node.status.offline">; node_id: z.ZodString; node_name: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>; export type NodeStatusOfflineEvent = z.infer; export type AgentStatusEvent = AgentStatusActiveEvent | AgentStatusIdleEvent | AgentStatusBlockedEvent | AgentStatusWaitingEvent | AgentStatusOfflineEvent | AgentStatusChangedEvent; export declare const ChannelCreatedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"channel.created">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>; export type ChannelCreatedEvent = z.infer; export declare const ChannelUpdatedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"channel.updated">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>; export type ChannelUpdatedEvent = z.infer; export declare const ChannelArchivedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"channel.archived">; channel: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type ChannelArchivedEvent = z.infer; export declare const MemberJoinedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"member.joined">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>; export type MemberJoinedEvent = z.infer; export declare const MemberLeftEventSchema: z.ZodObject<{ type: z.ZodLiteral<"member.left">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>; export type MemberLeftEvent = z.infer; export declare const ChannelMutedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"member.channel_muted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>; export type ChannelMutedEvent = z.infer; export declare const ChannelUnmutedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"member.channel_unmuted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>; export type ChannelUnmutedEvent = z.infer; export declare const MessageReadEventSchema: z.ZodObject<{ type: z.ZodLiteral<"message.read">; message_id: z.ZodString; agent_name: z.ZodString; read_at: z.ZodString; }, z.core.$strip>; export type MessageReadEvent = z.infer; export declare const FileUploadedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"file.uploaded">; file: z.ZodObject<{ file_id: z.ZodString; filename: z.ZodString; uploaded_by: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export type FileUploadedEvent = z.infer; export declare const PongEventSchema: z.ZodObject<{ type: z.ZodLiteral<"pong">; }, z.core.$strip>; export type PongEvent = z.infer; export declare const ResyncAckEventSchema: z.ZodObject<{ type: z.ZodLiteral<"resync_ack">; last_seen_seq: z.ZodNumber; current_seq: z.ZodNumber; replayed: z.ZodNumber; gap_detected: z.ZodBoolean; }, z.core.$strip>; export type ResyncAckEvent = z.infer; export declare const WebhookReceivedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"webhook.received">; webhook_id: z.ZodString; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; text: z.ZodString; source: z.ZodNullable; author: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export type WebhookReceivedEvent = z.infer; export declare const ActionInvokedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"action.invoked">; invocation_id: z.ZodString; action_name: z.ZodString; caller_name: z.ZodString; handler_agent_id: z.ZodString; handler_agent_name: z.ZodOptional; input: z.ZodOptional; }, z.core.$strip>; export type ActionInvokedEvent = z.infer; export declare const ActionCompletedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"action.completed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"completed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>; export type ActionCompletedEvent = z.infer; export declare const ActionFailedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"action.failed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"failed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>; export type ActionFailedEvent = z.infer; export declare const ActionDeniedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"action.denied">; action_name: z.ZodString; caller_name: z.ZodNullable; error: z.ZodString; }, z.core.$strip>; export type ActionDeniedEvent = z.infer; export declare const DeliveryAcceptedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"delivery.accepted">; delivery_id: z.ZodString; message_id: z.ZodString; channel_id: z.ZodOptional>; reason: z.ZodOptional>; }, z.core.$strip>; export type DeliveryAcceptedEvent = z.infer; export declare const DeliveryDeliveredEventSchema: z.ZodObject<{ type: z.ZodLiteral<"delivery.delivered">; delivery_id: z.ZodString; message_id: z.ZodString; }, z.core.$strip>; export type DeliveryDeliveredEvent = z.infer; export declare const DeliveryDeferredEventSchema: z.ZodObject<{ type: z.ZodLiteral<"delivery.deferred">; delivery_id: z.ZodString; message_id: z.ZodString; available_at: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>; export type DeliveryDeferredEvent = z.infer; export declare const DeliveryFailedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"delivery.failed">; delivery_id: z.ZodNullable; message_id: z.ZodString; error: z.ZodOptional>; retryable: z.ZodOptional>; }, z.core.$strip>; export type DeliveryFailedEvent = z.infer; export declare const WsOpenEventSchema: z.ZodObject<{ type: z.ZodLiteral<"open">; }, z.core.$strip>; export type WsOpenEvent = z.infer; export declare const WsErrorEventSchema: z.ZodObject<{ type: z.ZodLiteral<"error">; }, z.core.$strip>; export type WsErrorEvent = z.infer; export declare const WsReconnectingEventSchema: z.ZodObject<{ type: z.ZodLiteral<"reconnecting">; attempt: z.ZodNumber; }, z.core.$strip>; export type WsReconnectingEvent = z.infer; export declare const WsPermanentlyDisconnectedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"permanently_disconnected">; attempt: z.ZodNumber; }, z.core.$strip>; export type WsPermanentlyDisconnectedEvent = z.infer; export declare const WsCloseEventSchema: z.ZodObject<{ type: z.ZodLiteral<"close">; }, z.core.$strip>; export type WsCloseEvent = z.infer; export declare const WsResyncedEventSchema: z.ZodObject<{ type: z.ZodLiteral<"resynced">; replayed: z.ZodNumber; gap_detected: z.ZodBoolean; }, z.core.$strip>; export type WsResyncedEvent = z.infer; export declare const ServerEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message.created">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.updated">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"thread.reply">; channel: z.ZodString; parent_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.reacted">; message_id: z.ZodString; emoji: z.ZodString; agent_name: z.ZodString; action: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"group_dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.active">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"active">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.idle">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"idle">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.blocked">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"blocked">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.waiting">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"waiting">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.offline">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"offline">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.changed">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodEnum<{ offline: "offline"; active: "active"; idle: "idle"; blocked: "blocked"; waiting: "waiting"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.exited">; agent_id: z.ZodString; agent_name: z.ZodString; node_id: z.ZodNullable; invocation_id: z.ZodNullable; reason: z.ZodEnum<{ deregistered: "deregistered"; missing_from_inventory: "missing_from_inventory"; released: "released"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"node.status.online">; node_id: z.ZodString; node_name: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"node.status.offline">; node_id: z.ZodString; node_name: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.created">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.updated">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.archived">; channel: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.joined">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.left">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.channel_muted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.channel_unmuted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.read">; message_id: z.ZodString; agent_name: z.ZodString; read_at: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file.uploaded">; file: z.ZodObject<{ file_id: z.ZodString; filename: z.ZodString; uploaded_by: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"webhook.received">; webhook_id: z.ZodString; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; text: z.ZodString; source: z.ZodNullable; author: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.invoked">; invocation_id: z.ZodString; action_name: z.ZodString; caller_name: z.ZodString; handler_agent_id: z.ZodString; handler_agent_name: z.ZodOptional; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.completed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"completed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.failed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"failed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.denied">; action_name: z.ZodString; caller_name: z.ZodNullable; error: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.accepted">; delivery_id: z.ZodString; message_id: z.ZodString; channel_id: z.ZodOptional>; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.delivered">; delivery_id: z.ZodString; message_id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.deferred">; delivery_id: z.ZodString; message_id: z.ZodString; available_at: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.failed">; delivery_id: z.ZodNullable; message_id: z.ZodString; error: z.ZodOptional>; retryable: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"pong">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resync_ack">; last_seen_seq: z.ZodNumber; current_seq: z.ZodNumber; replayed: z.ZodNumber; gap_detected: z.ZodBoolean; }, z.core.$strip>], "type">; export type ServerEvent = z.infer; export type ServerEventType = ServerEvent['type']; export type ClientEventType = ClientEvent['type']; export declare const RelaycastMessageEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message.created">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"thread.reply">; channel: z.ZodString; parent_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"group_dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>], "type">; export type RelaycastMessageEvent = z.infer; export declare const WsClientEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"message.created">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.updated">; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"thread.reply">; channel: z.ZodString; parent_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.reacted">; message_id: z.ZodString; emoji: z.ZodString; agent_name: z.ZodString; action: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; type: z.ZodLiteral<"group_dm.received">; conversation_id: z.ZodString; message: z.ZodObject<{ id: z.ZodString; agent_id: z.ZodString; agent_name: z.ZodString; agent_type: z.ZodOptional>; text: z.ZodString; injection_mode: z.ZodOptional>; attachments: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.active">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"active">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.idle">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"idle">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.blocked">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"blocked">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.waiting">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"waiting">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.offline">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodLiteral<"offline">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.status.changed">; agent: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; status: z.ZodEnum<{ offline: "offline"; active: "active"; idle: "idle"; blocked: "blocked"; waiting: "waiting"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"agent.exited">; agent_id: z.ZodString; agent_name: z.ZodString; node_id: z.ZodNullable; invocation_id: z.ZodNullable; reason: z.ZodEnum<{ deregistered: "deregistered"; missing_from_inventory: "missing_from_inventory"; released: "released"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"node.status.online">; node_id: z.ZodString; node_name: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"node.status.offline">; node_id: z.ZodString; node_name: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.created">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.updated">; channel: z.ZodObject<{ name: z.ZodString; topic: z.ZodNullable; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"channel.archived">; channel: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.joined">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.left">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.channel_muted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"member.channel_unmuted">; channel: z.ZodString; agent_name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message.read">; message_id: z.ZodString; agent_name: z.ZodString; read_at: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"file.uploaded">; file: z.ZodObject<{ file_id: z.ZodString; filename: z.ZodString; uploaded_by: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"webhook.received">; webhook_id: z.ZodString; channel: z.ZodString; message: z.ZodObject<{ id: z.ZodString; text: z.ZodString; source: z.ZodNullable; author: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.invoked">; invocation_id: z.ZodString; action_name: z.ZodString; caller_name: z.ZodString; handler_agent_id: z.ZodString; handler_agent_name: z.ZodOptional; input: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.completed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"completed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.failed">; invocation_id: z.ZodString; action_name: z.ZodString; status: z.ZodLiteral<"failed">; output: z.ZodNullable>; error: z.ZodNullable; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"action.denied">; action_name: z.ZodString; caller_name: z.ZodNullable; error: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.accepted">; delivery_id: z.ZodString; message_id: z.ZodString; channel_id: z.ZodOptional>; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.delivered">; delivery_id: z.ZodString; message_id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.deferred">; delivery_id: z.ZodString; message_id: z.ZodString; available_at: z.ZodNullable; reason: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delivery.failed">; delivery_id: z.ZodNullable; message_id: z.ZodString; error: z.ZodOptional>; retryable: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"pong">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resync_ack">; last_seen_seq: z.ZodNumber; current_seq: z.ZodNumber; replayed: z.ZodNumber; gap_detected: z.ZodBoolean; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"open">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"error">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reconnecting">; attempt: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"permanently_disconnected">; attempt: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"close">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resynced">; replayed: z.ZodNumber; gap_detected: z.ZodBoolean; }, z.core.$strip>], "type">; export type WsClientEvent = z.infer; export type WsClientEventType = WsClientEvent['type']; //# sourceMappingURL=events.d.ts.map