remotion
Version:
Make videos programmatically
29 lines (28 loc) • 1.07 kB
TypeScript
import type { SyntheticEvent } from 'react';
import React from 'react';
type Props = Record<string, Record<string, unknown>>;
export type EditorPropsContextType = {
props: Props;
updateProps: (options: {
id: string;
defaultProps: Record<string, unknown>;
newProps: Record<string, unknown> | ((oldProps: Record<string, unknown>) => Record<string, unknown>);
}) => void;
resetUnsaved: (compositionId: string) => void;
};
export declare const EditorPropsContext: React.Context<EditorPropsContextType>;
export declare const editorPropsProviderRef: React.RefObject<{
getProps: () => Props;
setProps: React.Dispatch<React.SetStateAction<Props>>;
} | null>;
export declare const timeValueRef: React.RefObject<{
goToFrame: () => void;
seek: (newFrame: number) => void;
play: (e?: SyntheticEvent | PointerEvent) => void;
pause: () => void;
toggle: (e?: SyntheticEvent | PointerEvent) => void;
} | null>;
export declare const EditorPropsProvider: React.FC<{
readonly children: React.ReactNode;
}>;
export {};