1 | import { AnimationBuilder, ComponentProps, FrameworkDelegate, NavComponentWithProps } from '../../interface';
|
2 | export declare const VIEW_STATE_NEW = 1;
|
3 | export declare const VIEW_STATE_ATTACHED = 2;
|
4 | export declare const VIEW_STATE_DESTROYED = 3;
|
5 | export 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 | }
|
20 | export declare const matches: (view: ViewController | undefined, id: string, params: ComponentProps | undefined) => view is ViewController;
|
21 | export declare const convertToView: (page: any, params: ComponentProps | undefined) => ViewController | null;
|
22 | export declare const convertToViews: (pages: NavComponentWithProps[]) => ViewController[];
|