/** * @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.dev/license */ import type { DepOptimizationConfig } from 'vite'; import { JavaScriptTransformer } from '../esbuild/javascript-transformer'; export type AngularMemoryOutputFiles = Map; export type AngularOutputAssets = Map; export declare function pathnameWithoutBasePath(url: string, basePath: string): string; export declare function lookupMimeTypeFromRequest(url: string): string | undefined; export type EsbuildLoaderOption = Exclude['loader']; export declare function getDepOptimizationConfig({ disabled, exclude, include, target, zoneless, prebundleTransformer, ssr, loader, thirdPartySourcemaps, define, }: { disabled: boolean; exclude: string[]; include: string[]; target: string[]; prebundleTransformer: JavaScriptTransformer; ssr: boolean; zoneless: boolean; loader?: EsbuildLoaderOption; thirdPartySourcemaps: boolean; define: Record | undefined; }): DepOptimizationConfig;