import type { ImageFit } from '../calculate-image-fit.js'; import type { EffectsProp, EffectsOutputSize } from '../effects/effect-types.js'; import type { CanvasDomProps } from '../get-canvas-props-from-sequence-props.js'; import type { InteractiveBaseProps, InteractiveCropProps, InteractivePremountProps } from '../Interactive.js'; export type RemotionAnimatedImageLoopBehavior = 'loop' | 'pause-after-finish' | 'clear-after-finish'; export type AnimatedImageCanvasProps = CanvasDomProps; export type RemotionAnimatedImageProps = { src: string; width?: number; height?: number; onError?: (error: Error) => void; fit?: AnimatedImageFillMode; playbackRate?: number; style?: React.CSSProperties; loopBehavior?: RemotionAnimatedImageLoopBehavior; id?: string; className?: string; requestInit?: RequestInit; } & AnimatedImageCanvasProps; export type AnimatedImageProps = InteractiveBaseProps & InteractiveCropProps & InteractivePremountProps & RemotionAnimatedImageProps & { readonly effects?: EffectsProp; readonly effectsOutputSize?: EffectsOutputSize; }; export type AnimatedImageFillMode = ImageFit;