import { Component, ComponentConstructor, Props } from "./component"; import { ComponentNode } from "./component_node"; import { handleError } from "./error_handling"; import { Fiber, RootFiber, MountOptions } from "./fibers"; import { Scheduler } from "./scheduler"; import { TemplateSet, TemplateSetConfig } from "./template_set"; import { validateTarget } from "./utils"; import { toRaw, reactive } from "./reactivity"; export interface Env { [key: string]: any; } export interface RootConfig
{ props?: P; env?: E; } export interface AppConfig
extends TemplateSetConfig, RootConfig
{
name?: string;
test?: boolean;
warnIfNoStaticProps?: boolean;
}
declare global {
interface Window {
__OWL_DEVTOOLS__: {
apps: Set {
node: ComponentNode ;
mount(target: HTMLElement | ShadowRoot, options?: MountOptions): Promise ;
props: P;
env: E;
scheduler: Scheduler;
subRoots: Set | null;
warnIfNoStaticProps: boolean;
constructor(Root: ComponentConstructor , config?: AppConfig );
mount(target: HTMLElement | ShadowRoot, options?: MountOptions): Promise (name: string | null, isStatic: boolean, hasSlotsProp: boolean, hasDynamicPropList: boolean, propList: string[]): (props: P, key: string, ctx: ComponentNode, parent: any, C: any) => any;
handleError(...args: Parameters , target: HTMLElement, config?: AppConfig & MountOptions): Promise