import { Plugin } from 'vite'; import { CompilerContext } from '../context/index.ts'; import { InlineConfig } from 'vitest/node'; import { PuppeteerTestingOptions } from '../publicTypes.ts'; export type PuppeteerVitestConfigOptions = InlineConfig & { puppeteerLaunchOptions?: PuppeteerTestingOptions["launchOptions"]; puppeteerWaitForChangesDelay?: number; }; /** * Plugin to set up the common Vite configuration. * * @remarks * In order to respect the options user provided directly to Vite, we must * apply the user-provided options, and only fallback to our value if user did * not set a value. * Though, as per Vite's config merge logic, we only need to look up the default * value for literal value properties - objects and arrays are merged. * https://github.com/vitejs/vite/blob/bb4ba9f448da01782f585369f80c4517da087000/packages/vite/src/node/utils.ts#L1074 */ export declare const configureVite: (context: CompilerContext) => Plugin;