UNPKG

803 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 */
8export declare const AngularPluginSymbol: unique symbol;
9export interface EmitFileResult {
10 content?: string;
11 map?: string;
12 dependencies: readonly string[];
13 hash?: Uint8Array;
14}
15export type FileEmitter = (file: string) => Promise<EmitFileResult | undefined>;
16export declare class FileEmitterRegistration {
17 #private;
18 update(emitter: FileEmitter): void;
19 emit(file: string): Promise<EmitFileResult | undefined>;
20}
21export declare class FileEmitterCollection {
22 #private;
23 register(): FileEmitterRegistration;
24 emit(file: string): Promise<EmitFileResult | undefined>;
25}