1 | import { PrecompileOptions } from '../parser/tokenizer-event-handlers';
|
2 | import { SourceLocation } from '../source/location';
|
3 | import { Source } from '../source/source';
|
4 | import { SourceSpan } from '../source/span';
|
5 | import { BlockSymbolTable, SymbolTable } from '../symbol-table';
|
6 | import * as ASTv1 from '../v1/api';
|
7 | import * as ASTv2 from './api';
|
8 | import { Builder } from './builders';
|
9 | import { Resolution } from './loose-resolution';
|
10 | export declare function normalize(source: Source, options?: PrecompileOptions): [ast: ASTv2.Template, locals: string[]];
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare class BlockContext<Table extends SymbolTable = SymbolTable> {
|
23 | readonly source: Source;
|
24 | private readonly options;
|
25 | readonly table: Table;
|
26 | readonly builder: Builder;
|
27 | constructor(source: Source, options: PrecompileOptions, table: Table);
|
28 | get strict(): boolean;
|
29 | loc(loc: SourceLocation): SourceSpan;
|
30 | resolutionFor<N extends ASTv1.CallNode | ASTv1.PathExpression>(node: N, resolution: Resolution<N>): {
|
31 | resolution: ASTv2.FreeVarResolution;
|
32 | } | {
|
33 | resolution: 'error';
|
34 | path: string;
|
35 | head: string;
|
36 | };
|
37 | private isFreeVar;
|
38 | hasBinding(name: string): boolean;
|
39 | child(blockParams: string[]): BlockContext<BlockSymbolTable>;
|
40 | customizeComponentName(input: string): string;
|
41 | }
|
42 |
|
\ | No newline at end of file |