1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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
|
*/
|
8
|
import { HtmlParser } from '../ml_parser/html_parser';
|
9
|
import { InterpolationConfig } from '../ml_parser/interpolation_config';
|
10
|
import { ParseError } from '../parse_util';
|
11
|
import * as i18n from './i18n_ast';
|
12
|
import { Serializer } from './serializers/serializer';
|
13
|
/**
|
14
|
* A container for message extracted from the templates.
|
15
|
*/
|
16
|
export declare class MessageBundle {
|
17
|
private _htmlParser;
|
18
|
private _implicitTags;
|
19
|
private _implicitAttrs;
|
20
|
private _locale;
|
21
|
private _messages;
|
22
|
constructor(_htmlParser: HtmlParser, _implicitTags: string[], _implicitAttrs: {
|
23
|
[k: string]: string[];
|
24
|
}, _locale?: string | null);
|
25
|
updateFromTemplate(html: string, url: string, interpolationConfig: InterpolationConfig): ParseError[];
|
26
|
getMessages(): i18n.Message[];
|
27
|
write(serializer: Serializer, filterSources?: (path: string) => string): string;
|
28
|
}
|