import { Either } from 'monet'; import { AttributeParserError } from "../core"; import { GeneratorAstNode, HasChildrenAstNode, ParameterNode } from "../generator/ast"; export interface ScopeData { root: HasChildrenAstNode; childParent: HasChildrenAstNode; attachToTemplateRoot?: boolean; } export interface SuccessfulParserResult { nodes: GeneratorAstNode[]; scopeData?: ScopeData; isScopeEnd?: boolean; terminate?: boolean; } export declare type ParserResult = Either; export declare type AttributeParser = (attrib: string) => ParserResult; export declare function defaultParser(attrib: string): ParserResult; export declare function optionalAttributeParser(attrib: string): ParserResult; export declare const NG_REPEAT_SPECIAL_PROPERTIES: ParameterNode[]; /** * This code is derived from the AngularJS source code. */ export declare function parseNgRepeat(expression: string): ParserResult; export declare function wrapParseScopeStart(parser: AttributeParser): AttributeParser; export declare function parseScopeEnd(_expression?: string): ParserResult; export declare function parseNgIf(expression: string): ParserResult; export declare function parseEventDirective(expression: string): ParserResult; export declare function parseInterpolatedText(text: string, symbols?: { startSymbol: string; endSymbol: string; }): ParserResult; export declare function parseNgOptions(optionsExp: string): ParserResult; export declare function parseNgController(expression: string): ParserResult;