type ServerResponse = import('http').ServerResponse; type IncomingMessage = import('http').IncomingMessage; type Falsy = false|""|0|null|undefined; interface Expect { toBe(other: T, message?: string): void; toBeFalsy(message?: string): void; toBeTruthy(message?: string): void; toContain(other: any, message?: string): void; toEqual(other: T, message?: string): void; toBeNull(message?: string): void; toBeInstanceOf(other: Function, message?: string): void; toBeGreaterThan(other: number, message?: string): void; toBeGreaterThanOrEqual(other: number, message?: string): void; toBeLessThan(other: number, message?: string): void; toBeLessThanOrEqual(other: number, message?: string): void; toBeCloseTo(other: number, precision: number, message?: string): void; toBeGolden(golden: {goldenPath: string, outputPath: string, goldenName: string}): void; not: Expect; } type DescribeFunction = ((name: string, inner: () => void) => void) & {fail(condition: boolean): DescribeFunction}; type ItFunction = ((name: string, inner: (state: STATE) => Promise) => void) & {fail(condition: boolean): ItFunction; repeat(n: number): ItFunction}; type TestRunner = { describe: DescribeFunction; xdescribe: DescribeFunction; fdescribe: DescribeFunction; it: ItFunction; xit: ItFunction; fit: ItFunction; dit: ItFunction; beforeAll, beforeEach, afterAll, afterEach; }; interface TestSetup { testRunner: TestRunner; product: 'Chromium'|'Firefox'|'WebKit'; FFOX: boolean; WEBKIT: boolean; CHROMIUM: boolean; MAC: boolean; LINUX: boolean; WIN: boolean; playwright: typeof import('../index'); browserType: import('../index').BrowserType; selectors: import('../src/selectors').Selectors; expect(value: T): Expect; defaultBrowserOptions: import('../src/server/browserType').LaunchOptions; playwrightPath; headless: boolean; ASSETS_DIR: string; } type TestState = { server: TestServer; httpsServer: TestServer; sourceServer: TestServer; }; type BrowserState = TestState & { browser: import('../index').Browser; browserServer: import('../index').BrowserServer; }; type PageState = BrowserState & { context: import('../index').BrowserContext; page: import('../index').Page; }; type ChromiumPageState = PageState & { browser: import('../index').ChromiumBrowser; }; type TestSuite = (setup: TestSetup) => void; type BrowserTestSuite = (setup: TestSetup) => void; type PageTestSuite = (setup: TestSetup) => void; type ChromiumTestSuite = (setup: TestSetup) => void; interface TestServer { enableHTTPCache(pathPrefix: string); setAuth(path: string, username: string, password: string); enableGzip(path: string); setCSP(path: string, csp: string); stop(): Promise; setRoute(path: string, handler: (message: IncomingMessage, response: ServerResponse) => void); setRedirect(from: string, to: string); waitForRequest(path: string): Promise; reset(); serveFile(request: IncomingMessage, response: ServerResponse, pathName: string); PORT: number; PREFIX: string; CROSS_PROCESS_PREFIX: string; EMPTY_PAGE: string; }