/** * @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 { BrowserConfigOptions, UserWorkspaceConfig, VitestPlugin } from 'vitest/node'; import type { ResultFile } from '../../../application/results'; import type { NormalizedUnitTestBuilderOptions } from '../../options'; type VitestPlugins = Awaited>; interface PluginOptions { workspaceRoot: string; projectSourceRoot: string; projectName: string; buildResultFiles: ReadonlyMap; testFileToEntryPoint: ReadonlyMap; } interface VitestConfigPluginOptions { browser: BrowserConfigOptions | undefined; coverage: NormalizedUnitTestBuilderOptions['coverage']; projectName: string; projectSourceRoot: string; reporters?: string[] | [string, object][]; setupFiles: string[]; projectPlugins: Exclude; include: string[]; optimizeDepsInclude: string[]; watch: boolean; } export declare function createVitestConfigPlugin(options: VitestConfigPluginOptions): Promise; export declare function createVitestPlugins(pluginOptions: PluginOptions): VitestPlugins; export {};