1 | import { Node } from './node';
|
2 | export type NodePropertyDescriptor = {
|
3 | type: 'object' | 'value' | 'array' | 'node' | 'container' | 'mix';
|
4 | key?: string;
|
5 | ctor?: new (...args: any[]) => any;
|
6 | };
|
7 | type NodeClass = new (props: any, type?: string) => Node;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare function defineProps(descriptors: Record<string, NodePropertyDescriptor>): (Node: NodeClass) => any;
|
13 | export declare function nodeProps(node: Record<string, new (...args: any[]) => any>): Record<string, NodePropertyDescriptor>;
|
14 | export {};
|