Files
story-studio/remotion/node_modules/@remotion/studio/dist/helpers/client-id.d.ts
2026-02-21 10:33:18 +01:00

21 lines
625 B
TypeScript

import type { EventSourceEvent } from '@remotion/studio-shared';
import React from 'react';
type PreviewServerState = {
type: 'init';
} | {
type: 'connected';
clientId: string;
} | {
type: 'disconnected';
};
type Context = {
previewServerState: PreviewServerState;
subscribeToEvent: (type: EventSourceEvent['type'], listener: (event: EventSourceEvent) => void) => () => void;
};
export declare const StudioServerConnectionCtx: React.Context<Context>;
export declare const PreviewServerConnection: React.FC<{
readonly children: React.ReactNode;
readonly readOnlyStudio: boolean;
}>;
export {};