import type { UserConfig, ConfigEnv } from "vite"; import type { BrowserViteEvents, WorkerViteEvents, ViteBrowserEvents } from "./browser-modules/types"; export type { BrowserViteEvents, WorkerViteEvents } from "./browser-modules/types"; export interface BrowserTestRunEnvOptions { /** * Vite configuration */ viteConfig?: string | UserConfig | ((env: ConfigEnv) => UserConfig | Promise); /** * If set to `true` Testplane will automatically mock dependencies within the `automockDir` directory * @default false */ automock?: boolean; /** * Path to automock directory in which Testplane will look for dependencies to mock * @default ./__mocks__ */ automockDir?: string; } export interface ClientViteEvents extends BrowserViteEvents, WorkerViteEvents { } export interface ViteClientEvents extends BrowserViteEvents, ViteBrowserEvents { } export declare const BrowserEventNames: { readonly initialize: "browser:initialize"; readonly runBrowserCommand: "browser:runBrowserCommand"; readonly runExpectMatcher: "browser:runExpectMatcher"; readonly callConsoleMethod: "browser:callConsoleMethod"; readonly reconnect: "browser:reconnect"; readonly profilerFragment: "browser:profilerFragment"; }; export type BrowserEventNames = (typeof BrowserEventNames)[keyof typeof BrowserEventNames];