import { TypeSubscribable, TypeThenable, TypeUnsubscriber, TypeAwaitedOrSubscribed } from '.'; import { IS_REASE_NODE } from '.'; import { get_attribute_setter } from '.'; export declare type TypeReaseProp = (TypeSubscribable> | TypeThenable> | TypeAwaitedOrSubscribed) & T; export declare type TypeReaseProps = { [key: string]: TypeReaseProp; }; export declare type TypeReaseContextElement = TypeReaseContext & { node: HTMLElement | SVGElement; }; export declare type TypeReaseUse = (ctx: T) => (void | ((ctx: T) => void) | { created?: (ctx: T) => void; destroy?: (ctx: T) => void; }); declare type TypeAnyFunc = { (...a: any): any; [key: string]: any; }; export declare const TYPES: { readonly ROOT: "ROOT"; readonly COMPONENT: "COMPONENT"; readonly ELEMENT: "ELEMENT"; readonly FRAGMENT: "FRAGMENT"; readonly SLOT: "SLOT"; readonly TEXT: "TEXT"; readonly EXPRESSION: "EXPRESSION"; readonly COMMENT: "COMMENT"; readonly HTML: "HTML"; readonly TAG: "TAG"; readonly IF: "IF"; readonly ELIF: "ELIF"; readonly ELSE: "ELSE"; readonly WATCH: "WATCH"; readonly AWAIT: "AWAIT"; readonly THEN: "THEN"; readonly FOR: "FOR"; }; export declare type TypeReaseHook = (cmp: TypeReaseContext) => void | TypeReaseHook | TypeThenable; export declare function onCreated(this: any, fn: TypeReaseHook): void; export declare function onDestroy(this: any, fn: TypeReaseHook): void; export declare const involve: { any>(ctx: TypeReaseContext, wrapper: F): void; any>(ctx: TypeReaseContext, wrapper: F_1, wrapperArgs: [...Parameters]): void; }; export declare function context(): TypeReaseContext; export declare function destroy_system(ctx: TypeReaseContext): void; export declare function destroy_children(ctx: TypeReaseContext): void; export declare type TypeReaseContext = { readonly type: typeof TYPES[keyof typeof TYPES]; readonly name: any; is: any; readonly node: null | Element | Text | Comment; readonly props: { [key: string]: any; } | undefined; readonly use: TypeReaseUse[] | undefined; readonly root: TypeReaseContext; readonly home: TypeReaseContext; readonly high: TypeReaseContext; readonly parent: TypeReaseContext; readonly children: TypeReaseContext[]; readonly slots: null | [any, TypeAnyFunc][]; readonly attrs: null | { [key: string]: { is: any; _is: any; high: TypeReaseContext; parser: (dirty: any) => any; setter: (e: any, k: string, v: any, ctx: TypeReaseContext) => any; type: ReturnType['t']; name: string; _: { $: number; u: TypeAnyFunc; }; }; }; readonly on: boolean; readonly pub: { [key: string]: any; }; readonly _is: any; readonly _: { readonly _: typeof IS_REASE_NODE; $: number; sn?: any; oc?: TypeReaseHook[]; od?: TypeReaseHook[]; ds?: TypeUnsubscriber; du?: any[]; hl?: Node[]; as?: { [key: string]: any; }; ac?: { [key: string]: any; }; if?: any[]; fr?: [any, any]; aw?: any; }; }; export declare function _TEXT(text: any): void; export declare function _EXPO($expr$: any): void; export declare function _COMMENT_DYNAMIC($comment$: any): void; export declare function _HTML($html$: any, trustedTypesPolicy?: { createHTML: (s: string) => string; }): void; export declare function _RULE_TAG(data: any, props?: TypeReaseProps, use?: TypeReaseUse[], slotname?: any): ((childrenSlots: [any, TypeAnyFunc][]) => void); export declare function _R_SLOT(slotname?: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _COMPONENT(cmpFn: TypeAnyFunc, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenSlots: [any, TypeAnyFunc][]) => void); export declare function _COMPONENT_DYNAMIC(fnDefault: TypeAnyFunc | null, props: TypeReaseProps, use: TypeReaseUse[], fn$$: any): ((childrenSlots: [any, TypeAnyFunc][]) => void); export declare function _ELEMENT(tag: string, props?: TypeReaseProps, use?: TypeReaseUse[]): TypeAnyFunc; export declare function _FUNCTION_CALL(fn: Function): void; export declare function _ELEMENT_DYNAMIC(tagDefault: string, props: TypeReaseProps, use: TypeReaseUse[], tag$$: any): TypeAnyFunc; export declare function _R_FRAGMENT(props?: TypeReaseProps, use?: TypeReaseUse[]): TypeAnyFunc; export declare function _RULE_IF(data: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_ELSE_IF(data: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_ELSE(props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_WATCH(data: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_AWAIT(data: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_THEN(props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn?: TypeAnyFunc) => void); export declare function _RULE_FOR(data: any, props?: TypeReaseProps, use?: TypeReaseUse[]): ((childrenFn: TypeAnyFunc) => void); export declare const createReaseApp: { any>(target: null | HTMLElement | SVGElement, wrapper: F): ReturnType; any>(target: null | HTMLElement | SVGElement, wrapper: F_1, wrapperArgs: [...Parameters]): ReturnType; }; export {};