UNPKG

968 BTypeScriptView Raw
1import { AnimationBuilder, ComponentProps, FrameworkDelegate, NavComponentWithProps } from '../../interface';
2export declare const VIEW_STATE_NEW = 1;
3export declare const VIEW_STATE_ATTACHED = 2;
4export declare const VIEW_STATE_DESTROYED = 3;
5export declare class ViewController {
6 component: any;
7 params: ComponentProps | undefined;
8 state: number;
9 nav?: any;
10 element?: HTMLElement;
11 delegate?: FrameworkDelegate;
12 animationBuilder?: AnimationBuilder;
13 constructor(component: any, params: ComponentProps | undefined);
14 init(container: HTMLElement): Promise<void>;
15 /**
16 * DOM WRITE
17 */
18 _destroy(): void;
19}
20export declare const matches: (view: ViewController | undefined, id: string, params: ComponentProps | undefined) => view is ViewController;
21export declare const convertToView: (page: any, params: ComponentProps | undefined) => ViewController | null;
22export declare const convertToViews: (pages: NavComponentWithProps[]) => ViewController[];