/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { BuilderContext } from '@angular-devkit/architect'; import { BuildOptions, Metafile, OutputFile, PartialMessage } from 'esbuild'; import { InitialFileRecord } from './bundler-context'; export declare function logBuildStats(context: BuilderContext, metafile: Metafile, initial: Map, estimatedTransferSizes?: Map): void; export declare function calculateEstimatedTransferSizes(outputFiles: OutputFile[]): Promise>; export declare function withSpinner(text: string, action: () => T | Promise): Promise; export declare function withNoProgress(test: string, action: () => T | Promise): Promise; export declare function logMessages(context: BuilderContext, { errors, warnings }: { errors?: PartialMessage[]; warnings?: PartialMessage[]; }): Promise; /** * Generates a syntax feature object map for Angular applications based on a list of targets. * A full set of feature names can be found here: https://esbuild.github.io/api/#supported * @param target An array of browser/engine targets in the format accepted by the esbuild `target` option. * @returns An object that can be used with the esbuild build `supported` option. */ export declare function getFeatureSupport(target: string[]): BuildOptions['supported']; export declare function writeResultFiles(outputFiles: OutputFile[], assetFiles: { source: string; destination: string; }[] | undefined, outputPath: string): Promise; export declare function createOutputFileFromText(path: string, text: string): OutputFile; /** * Transform browserlists result to esbuild target. * @see https://esbuild.github.io/api/#target */ export declare function transformSupportedBrowsersToTargets(supportedBrowsers: string[]): string[];