import type { StaticFile } from 'remotion'; import type { CanUpdateSequencePropsResponse, SequenceNodePath } from './api-requests'; import type { CompletedClientRender, RenderJob } from './render-job'; export type EventSourceEvent = { type: 'new-input-props'; newProps: object; } | { type: 'init'; clientId: string; } | { type: 'new-env-variables'; newEnvVariables: Record; } | { type: 'root-file-changed'; } | { type: 'render-queue-updated'; queue: RenderJob[]; } | { type: 'render-job-failed'; compositionId: string; error: Error; } | { type: 'watched-file-undeleted'; file: string; } | { type: 'watched-file-deleted'; file: string; } | { type: 'client-renders-updated'; renders: CompletedClientRender[]; } | { type: 'new-public-folder'; files: StaticFile[]; folderExists: string | null; } | { type: 'sequence-props-updated'; fileName: string; nodePath: SequenceNodePath; result: CanUpdateSequencePropsResponse; };