import { PlaywrightTestArgs, PlaywrightTestConfig, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from '@playwright/test'; import { IncomingMessage, ServerResponse } from 'http'; import { Plugin } from 'vite'; export const test: TestType< PlaywrightTestArgs & PlaywrightTestOptions & { app: { goto: (url: string, opts?: { replaceState?: boolean }) => Promise; invalidate: (url: string) => Promise; beforeNavigate: (url: URL) => void | boolean; afterNavigate: (url: URL) => void; prefetch: (url: string) => Promise; prefetchRoutes: (urls: string[]) => Promise; }; clicknav: (selector: string, options?: { timeout?: number }) => Promise; in_view: (selector: string) => Promise; /** * `handleError` defines the shape */ read_errors: (href: string) => Record; }, PlaywrightWorkerArgs & PlaywrightWorkerOptions >; export const config: PlaywrightTestConfig; export const start_server: ( handler: (req: IncomingMessage, res: ServerResponse) => void, start?: number ) => Promise<{ port: number; close: () => Promise; }>; export const plugin: () => Plugin;