import { TmplAstNode as Node, TmplAstElement as Element, TmplAstText as Text, TmplAstTemplate as Template, TmplAstTextAttribute as TextAttribute, TmplAstBoundAttribute as BoundAttribute, AST, LiteralPrimitive } from '@angular/compiler'; import { ParserInterface } from './parser.interface'; import { TranslationCollection } from '../utils/translation.collection'; declare type ElementLike = Element | Template; export declare class DirectiveParser implements ParserInterface { private readonly attrNames?; constructor(attrNames?: string[]); extract(source: string, filePath: string): TranslationCollection | null; protected getElementsWithTranslateAttribute(nodes: Node[]): ElementLike[]; protected getTextNodes(element: ElementLike): Text[]; protected hasAttribute(element: ElementLike, names: string[]): boolean; protected getAttributes(element: ElementLike, names: string[]): TextAttribute[]; protected hasBoundAttributes(element: ElementLike, names: string[]): boolean; protected getBoundAttributes(element: ElementLike, names: string[]): BoundAttribute[]; protected getLiteralPrimitives(exp: AST): LiteralPrimitive[]; protected isElementLike(node: Node): node is ElementLike; protected isText(node: Node): node is Text; protected parseTemplate(template: string, path: string): Node[]; } export {};