UNPKG

remotion

Version:

Make videos programmatically

23 lines (22 loc) 1.1 kB
import type { MutableRefObject } from 'react'; import { type PlaybackRateContextValue, type TimelineContextValue } from './TimelineContext.js'; export type PlayableMediaTag = { play: (reason: string) => void; id: string; }; type CurrentTimePerComposition = Record<string, number>; export declare const persistCurrentFrame: (time: CurrentTimePerComposition) => void; export declare const getInitialFrameState: () => CurrentTimePerComposition; export declare const getFrameForComposition: (composition: string) => number; export declare const useTimelineContext: () => TimelineContextValue; export declare const usePlaybackRate: () => PlaybackRateContextValue; export declare const useTimelinePosition: () => number; export declare const useAbsoluteTimelinePosition: () => number; export declare const useTimelineSetFrame: () => ((u: React.SetStateAction<Record<string, number>>) => void); type PlayingReturnType = readonly [ boolean, (u: React.SetStateAction<boolean>) => void, MutableRefObject<boolean> ]; export declare const usePlayingState: () => PlayingReturnType; export {};