export type PreviewServerTransport = { type: 'idle'; } | { type: 'event-source'; source: EventSource; opened: boolean; } | { type: 'retry-scheduled'; timeout: ReturnType; } | { type: 'browser-studio'; unsubscribe: () => void; }; export type PreviewServerTransportEvent = { type: 'event-source-created'; source: EventSource; } | { type: 'event-source-opened'; source: EventSource; } | { type: 'event-source-failed'; source: EventSource; timeout: ReturnType; } | { type: 'retry-fired'; } | { type: 'browser-studio-connected'; unsubscribe: () => void; }; export declare const transitionPreviewServerTransport: (state: PreviewServerTransport, event: PreviewServerTransportEvent) => PreviewServerTransport;