remotion
Version:
Make videos programmatically
34 lines (33 loc) • 1.36 kB
TypeScript
import React from 'react';
import type { SequenceProps } from './Sequence.js';
export declare function truncateSrcForLabel(src: string): string;
type NativeImgProps = Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, 'src'>;
export type ImgProps = NativeImgProps & {
readonly maxRetries?: number;
readonly pauseWhenLoading?: boolean;
readonly delayRenderRetries?: number;
readonly delayRenderTimeoutInMilliseconds?: number;
readonly onImageFrame?: (imageElement: HTMLImageElement) => void;
readonly src: string;
readonly showInTimeline?: boolean;
readonly name?: string;
/**
* @deprecated For internal use only
*/
readonly stack?: string;
} & Pick<SequenceProps, 'durationInFrames' | 'from' | 'hidden'>;
export declare const Img: React.ComponentType<NativeImgProps & {
readonly maxRetries?: number;
readonly pauseWhenLoading?: boolean;
readonly delayRenderRetries?: number;
readonly delayRenderTimeoutInMilliseconds?: number;
readonly onImageFrame?: (imageElement: HTMLImageElement) => void;
readonly src: string;
readonly showInTimeline?: boolean;
readonly name?: string;
/**
* @deprecated For internal use only
*/
readonly stack?: string;
} & Pick<SequenceProps, "hidden" | "durationInFrames" | "from">>;
export {};