UNPKG

1.36 kBTypeScriptView Raw
1import * as ASTv1 from '../v1/api';
2import * as ASTv2 from './api';
3export interface AstCallParts {
4 path: ASTv1.Expression;
5 params: ASTv1.Expression[];
6 hash: ASTv1.Hash;
7}
8export interface VarPath extends ASTv1.PathExpression {
9 head: ASTv1.VarHead;
10}
11export declare function SexpSyntaxContext(node: ASTv1.SubExpression): ASTv2.FreeVarResolution | null;
12export declare function ModifierSyntaxContext(node: ASTv1.ElementModifierStatement): ASTv2.FreeVarResolution | null;
13export declare function BlockSyntaxContext(node: ASTv1.BlockStatement): ASTv2.FreeVarResolution | null;
14export declare function ComponentSyntaxContext(node: ASTv1.PathExpression): ASTv2.FreeVarResolution | null;
15/**
16 * This corresponds to append positions (text curlies or attribute
17 * curlies). In strict mode, this also corresponds to arg curlies.
18 */
19export declare function AttrValueSyntaxContext(node: ASTv1.MustacheStatement): ASTv2.FreeVarResolution;
20/**
21 * This corresponds to append positions (text curlies or attribute
22 * curlies). In strict mode, this also corresponds to arg curlies.
23 */
24export declare function AppendSyntaxContext(node: ASTv1.MustacheStatement): ASTv2.FreeVarResolution;
25export declare type Resolution<P extends AstCallParts | ASTv1.PathExpression> = (call: P) => ASTv2.FreeVarResolution | null;
26//# sourceMappingURL=loose-resolution.d.ts.map
\No newline at end of file