UNPKG

633 BTypeScriptView Raw
1import { AnyComponent } from './any-component';
2export declare type CompProps<T> = {
3 lazyComponent: () => Promise<{
4 default: AnyComponent<T>;
5 }>;
6} | {
7 component: AnyComponent<T>;
8};
9export declare type StillProps<T> = {
10 width: number;
11 height: number;
12 id: string;
13 defaultProps?: T;
14} & CompProps<T>;
15declare type CompositionProps<T> = StillProps<T> & {
16 fps: number;
17 durationInFrames: number;
18};
19export declare const Composition: <T>({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }: CompositionProps<T>) => null;
20export {};
21//# sourceMappingURL=Composition.d.ts.map
\No newline at end of file