1 | import { View, Template, KeyedTemplate } from '../core/view';
|
2 | import { Page } from '../page';
|
3 | import { NavigationEntry } from '../frame';
|
4 |
|
5 | export interface LoadOptions {
|
6 | path: string;
|
7 | name: string;
|
8 | attributes?: any;
|
9 | exports?: any;
|
10 | page?: Page;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export function createViewFromEntry(entry: NavigationEntry): View;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export function parse(value: string | Template, exports?: any): View;
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export function parseMultipleTemplates(value: string, exports?: any): Array<KeyedTemplate>;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export function load(fileName: string, exports?: any): View;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export function load(options: LoadOptions): View;
|
37 |
|
38 | export class Builder {
|
39 | |
40 |
|
41 |
|
42 | static knownTemplates: Set<string>;
|
43 | static knownMultiTemplates: Set<string>;
|
44 | static knownCollections: Set<string>;
|
45 |
|
46 | |
47 |
|
48 |
|
49 |
|
50 | static createViewFromEntry(entry: NavigationEntry): View;
|
51 |
|
52 | static parse(value: string | Template, exports?: any): View;
|
53 |
|
54 | |
55 |
|
56 |
|
57 |
|
58 |
|
59 | static parseMultipleTemplates(value: string, exports?: any): Array<KeyedTemplate>;
|
60 |
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 | static load(moduleName: string, exports?: any): View;
|
67 |
|
68 | |
69 |
|
70 |
|
71 |
|
72 | static load(options: LoadOptions): View;
|
73 | }
|