import type { local } from 'webdriver'; import type { Cookie } from '@wdio/protocols'; export type MockFilterOptions = { method?: string | ((method: string) => boolean); requestHeaders?: Record | ((headers: Record) => boolean); responseHeaders?: Record | ((headers: Record) => boolean); statusCode?: number | ((statusCode: number) => boolean); }; type Overwrite = T | ((request: Request) => T); type Methods = 'POST' | 'GET' | 'DELETE' | 'PUT' | 'PATCH' | 'OPTIONS' | 'HEAD'; export interface RequestWithOptions { body?: Overwrite; cookies?: Overwrite; headers?: Overwrite, local.NetworkBeforeRequestSentParameters>; method?: Overwrite; url?: Overwrite; } export interface RespondWithOptions extends Omit { statusCode?: Overwrite; } export interface MockRequestOptions { requestWith?: RequestWithOptions; } export {}; //# sourceMappingURL=types.d.ts.map