import type { EventSourceEvent } from '@remotion/studio-shared'; export type PreviewServerConnectionState = { type: 'init'; } | { type: 'connected'; clientId: string; } | { type: 'disconnected'; }; type MessageListener = (event: EventSourceEvent) => void; type ConnectionStateListener = (state: PreviewServerConnectionState) => void; export declare const ensurePreviewServerEventSource: () => void; export declare const subscribeToPreviewServerEvents: (listener: MessageListener) => (() => void); export declare const getPreviewServerConnectionState: () => PreviewServerConnectionState; export declare const subscribeToPreviewServerConnectionState: (listener: ConnectionStateListener) => (() => void); export {};