1 | import { Hooks } from './hooks';
|
2 | import { AttachData } from './helpers/attachto';
|
3 | import { VNodeStyle } from './modules/style';
|
4 | import { On } from './modules/eventlisteners';
|
5 | import { Attrs } from './modules/attributes';
|
6 | import { Classes } from './modules/class';
|
7 | import { Props } from './modules/props';
|
8 | import { Dataset } from './modules/dataset';
|
9 | import { Hero } from './modules/hero';
|
10 | export declare type Key = string | number;
|
11 | export interface VNode {
|
12 | sel: string | undefined;
|
13 | data: VNodeData | undefined;
|
14 | children: Array<VNode | string> | undefined;
|
15 | elm: Node | undefined;
|
16 | text: string | undefined;
|
17 | key: Key | undefined;
|
18 | }
|
19 | export interface VNodeData {
|
20 | props?: Props;
|
21 | attrs?: Attrs;
|
22 | class?: Classes;
|
23 | style?: VNodeStyle;
|
24 | dataset?: Dataset;
|
25 | on?: On;
|
26 | hero?: Hero;
|
27 | attachData?: AttachData;
|
28 | hook?: Hooks;
|
29 | key?: Key;
|
30 | ns?: string;
|
31 | fn?: () => VNode;
|
32 | args?: Array<any>;
|
33 | [key: string]: any;
|
34 | }
|
35 | export declare function vnode(sel: string | undefined, data: any | undefined, children: Array<VNode | string> | undefined, text: string | undefined, elm: Element | Text | undefined): VNode;
|
36 | export default vnode;
|