@diffusionstudio/core-v4
Version:
2D motion graphics and video rendering engine
17 lines (16 loc) • 605 B
TypeScript
import { MediaInput } from '../../types';
import { BaseSource, SourceInitOptions } from './base';
type SourceOptions = {
name?: string;
} & SourceInitOptions;
export declare class Source {
static from<T extends BaseSource>(input: MediaInput, options?: SourceOptions): Promise<T>;
/**
* Restore a checkpoint of the source.
* @param checkpoint The checkpoint to restore
* @param sources The sources to use for the restoration
* @returns The restored source
*/
static restoreCheckpoint(checkpoint: unknown, options?: SourceOptions): Promise<BaseSource>;
}
export {};