type ServerResponse = import('http').ServerResponse; type IncomingMessage = import('http').IncomingMessage; type DescribeFunction = ((name: string, inner: () => void) => void) & {fail(condition: boolean): DescribeFunction}; type ItFunction = ((name: string, inner: (state: STATE) => Promise) => void) & { fail(condition: boolean): ItFunction; skip(condition: boolean): ItFunction; slow(): ItFunction; repeat(n: number): ItFunction; }; interface FixtureState { parallelIndex: number; http_server: {server: TestServer, httpsServer: TestServer}; defaultBrowserOptions: import('../index').LaunchOptions; playwright: typeof import('../index'); browserType: import('../index').BrowserType; browser: import('../index').Browser; toImpl: (rpcObject: any) => any; context: import('../index').BrowserContext; server: TestServer; page: import('../index').Page; httpsServer: TestServer; browserServer: import('../index').BrowserServer; } 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; } declare module '' { module 'expect/build/types' { interface Matchers { toBeGolden(name: string): R; } } } declare const expect: typeof import('expect'); declare const describe: DescribeFunction; declare const fdescribe: DescribeFunction; declare const xdescribe: DescribeFunction; declare const it: ItFunction; declare const fit: ItFunction; declare const dit: ItFunction; declare const xit: ItFunction; declare const beforeEach: (inner: (state: FixtureState) => Promise) => void; declare const afterEach: (inner: (state: FixtureState) => Promise) => void; declare const beforeAll: (inner: (state: FixtureState) => Promise) => void; declare const afterAll: (inner: (state: FixtureState) => Promise) => void; declare const registerFixture: (name: T, inner: (state: FixtureState, test: (arg: FixtureState[T]) => Promise) => Promise) => void; declare const browserType: import('../index').BrowserType; // global variables in assets declare const testOptions: { FFOX: boolean; WEBKIT: boolean; CHROMIUM: boolean; MAC: boolean; LINUX: boolean; WIN: boolean; HEADLESS: boolean; OUTPUT_DIR: string; USES_HOOKS: boolean; CHANNEL: boolean; ASSETS_DIR: string; }; // keyboard.html declare function getResult(): string;