UNPKG

hele

Version:
22 lines (21 loc) 1.24 kB
import { Component, ComponentGetter } from "./Component"; import { Reference } from "./Reference"; export interface RawProps { [key: string]: any; ref?: Reference; } export interface Props extends RawProps { children: any; } export declare type SpecialPropProcessor<T> = (value: any, target: T) => void; export declare const specialNodePropProcessors: Map<string, SpecialPropProcessor<Node>>; export declare const specialComponentPropProcessors: Map<string, SpecialPropProcessor<Component<any, any, any>>>; export declare const specialFactoryPropProcessors: Map<string, SpecialPropProcessor<undefined>>; export declare function _getEName(rawEvent: string, useCapture: boolean, nonpassive: boolean, once: boolean): string; export declare function _getEOpt(capture: boolean, nonpassive: boolean, once: boolean): boolean | AddEventListenerOptions; export declare function _crtNode(props: Props, node: Node, context: any): void; export interface GetComponentResult<P extends RawProps = RawProps> { element: any; component: Component<P> | null; } export declare function _getCom<P extends RawProps = RawProps>(componentGetter: ComponentGetter<P>, props: Props & P, context: any): GetComponentResult<P>;