import type { BrowserPlugin } from './abstract-classes/browser-plugin'; import type { PlaywrightPlugin } from './playwright/playwright-plugin'; import type { PuppeteerPlugin } from './puppeteer/puppeteer-plugin'; export type UnwrapPromise = T extends PromiseLike ? UnwrapPromise : T; export declare function noop(..._args: unknown[]): void; /** * This is required when using optional dependencies. * Importing a type gives `any`, but `Parameters` gives `unknown[]` instead of `any` */ export type SafeParameters any> = unknown[] extends Parameters ? any : Parameters; export type InferBrowserPluginArray = Input extends readonly [infer FirstValue, ...infer Rest] | [infer FirstValue, ...infer Rest] ? FirstValue extends PlaywrightPlugin ? InferBrowserPluginArray : FirstValue extends PuppeteerPlugin ? InferBrowserPluginArray : never : Input extends [] ? Result : Input extends readonly (infer U)[] ? [ U ] extends [PuppeteerPlugin | PlaywrightPlugin] ? U[] : never : Result; //# sourceMappingURL=utils.d.ts.map