UNPKG

@threlte/theatre

Version:

Threlte Components for Theatre, an animation library with a professional motion design toolset

11 lines (10 loc) 536 B
import type { ISheetObject, UnknownShorthandCompoundProps } from '@theatre/core'; import type { CurrentWritable } from '@threlte/core'; type Context<T extends UnknownShorthandCompoundProps = any> = { sheetObject: CurrentWritable<ISheetObject<T>>; addProps: (props: UnknownShorthandCompoundProps) => void; removeProps: (names: string[]) => void; }; export declare const createSheetContext: (context: Context) => void; export declare const useSheet: <T extends UnknownShorthandCompoundProps = any>() => Context<T>; export {};