UNPKG

782 BTypeScriptView Raw
1import React, { ComponentType, FC } from 'react';
2export declare const Folder: FC<{
3 name: string;
4 children: React.ReactNode;
5}>;
6declare type LooseComponentType<T> = ComponentType<T> | ((props: T) => React.ReactNode);
7export declare type CompProps<T> = {
8 lazyComponent: () => Promise<{
9 default: LooseComponentType<T>;
10 }>;
11} | {
12 component: LooseComponentType<T>;
13};
14export declare type StillProps<T> = {
15 width: number;
16 height: number;
17 id: string;
18 defaultProps?: T;
19} & CompProps<T>;
20declare type CompositionProps<T> = StillProps<T> & {
21 fps: number;
22 durationInFrames: number;
23};
24export declare const Composition: <T>({ width, height, fps, durationInFrames, id, defaultProps, ...compProps }: CompositionProps<T>) => null;
25export {};