import { type BrowserPreviewClientMessage, type BrowserPreviewServerMessage } from '@xopcai/realtime-protocol'; export interface BrowserPreviewTarget { conversationId: string; runId: string; endpointId: string; browserSessionId: string; tabId: number; origin: string; } type Peer = { viewer?: string; principalId?: string; source?: { endpointId: string; isCurrent: () => boolean; }; isActive: () => boolean; send: (message: BrowserPreviewServerMessage) => void; }; export declare class BrowserPreviewRuntime { private readonly activeRun; private readonly targets; private readonly sources; private readonly watches; constructor(activeRun: (conversationId: string) => string | undefined); setTarget(target: BrowserPreviewTarget): void; clearTarget(conversationId: string, runId: string): void; private removeTarget; available(conversationId: string): boolean; register(peer: Peer): () => void; receive(peer: Peer, message: BrowserPreviewClientMessage): void; private request; publishSnapshot(requestId: string, principalId: string, token: string, bytes: Uint8Array): boolean; readSnapshot(requestId: string, principalId: string, token: string, after: number): { snapshot: { bytes: Uint8Array; at: number; version: number; } | undefined; } | undefined; private valid; sweep(): void; private closeWatch; } export {};