1 | import {
|
2 | ForwardRefExoticComponent,
|
3 | ComponentPropsWithRef,
|
4 | ReactType,
|
5 | } from 'react'
|
6 | import * as konva from 'react-konva'
|
7 | import { animated } from './renderprops-universal'
|
8 | export * from './renderprops-universal'
|
9 |
|
10 | type KonvaComponents = Pick<
|
11 | typeof konva,
|
12 | {
|
13 | [K in keyof typeof konva]: typeof konva[K] extends ReactType ? K : never
|
14 | }[keyof typeof konva]
|
15 | >
|
16 |
|
17 | declare const augmentedAnimated: typeof animated &
|
18 | {
|
19 | [Tag in keyof KonvaComponents]: ForwardRefExoticComponent<
|
20 | ComponentPropsWithRef<KonvaComponents[Tag]>
|
21 | >
|
22 | }
|
23 |
|
24 | export { augmentedAnimated as animated }
|