type RequestMessage = { type: "request"; requestId: string; participantId: string; authData: unknown; method: string; args: unknown[]; }; type SubscribeMessage = { type: "subscribe"; participantId: string; authData: unknown; scope: string | string[]; }; type UnsubscribeMessage = { type: "unsubscribe"; participantId: string; authData: unknown; scope: string | string[]; }; type ResponseMessage = { type: "response"; requestId: string; ok: boolean; data?: unknown; error?: string; }; type EventsMessage = { type: "events"; events: { scope: string; data: unknown; }[]; }; export type ClientToServer = RequestMessage | SubscribeMessage | UnsubscribeMessage; export type ServerToClient = ResponseMessage | EventsMessage; export type Scope = { kind: "message"; conversationId: string; } | { kind: "indicators"; conversationId: string; } | { kind: "conversation"; } | { kind: "invite"; } | { kind: "participantActivity"; }; export declare function encodeScope(scope: Scope): string; export declare function decodeScope(scope: string): Scope | null; export {}; //# sourceMappingURL=protocol.d.ts.map