UNPKG

798 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 */
8/// <amd-module name="@angular/compiler-cli/src/transformers/i18n" />
9import { MessageBundle } from '@angular/compiler';
10import ts from 'typescript';
11import { CompilerOptions } from './api';
12export declare function i18nGetExtension(formatName: string): string;
13export declare function i18nExtract(formatName: string | null, outFile: string | null, host: ts.CompilerHost, options: CompilerOptions, bundle: MessageBundle, pathResolve?: (...segments: string[]) => string): string[];
14export declare function i18nSerialize(bundle: MessageBundle, formatName: string, options: CompilerOptions): string;