UNPKG

847 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { MissingTranslationStrategy } from '../core';
9import { HtmlParser } from '../ml_parser/html_parser';
10import { TokenizeOptions } from '../ml_parser/lexer';
11import { ParseTreeResult } from '../ml_parser/parser';
12import { Console } from '../util';
13export declare class I18NHtmlParser implements HtmlParser {
14 private _htmlParser;
15 getTagDefinition: any;
16 private _translationBundle;
17 constructor(_htmlParser: HtmlParser, translations?: string, translationsFormat?: string, missingTranslation?: MissingTranslationStrategy, console?: Console);
18 parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult;
19}