import type { Logger } from '@wdio/logger'; import type { Frameworks, Services } from '@wdio/types'; type AfterScenario = NonNullable; type AfterScenarioParameters = Parameters; type World = AfterScenarioParameters[0]; interface NonPassingItem { location: string; failure?: string | undefined; } interface RerunServiceOptions { ignoredTags?: string[]; rerunDataDir?: string; rerunScriptPath?: string; commandPrefix?: string; customParameters?: string; platformName?: NodeJS.Platform; } export default class RerunService implements Services.ServiceInstance { nonPassingItems: NonPassingItem[]; serviceWorkerId: string; ignoredTags: string[]; rerunDataDir: string; rerunScriptPath: string; commandPrefix: string; customParameters: string; specFile: string; disabled: boolean; platformName: NodeJS.Platform; log: Logger; constructor(options?: RerunServiceOptions); before(_capabilities: WebdriverIO.Capabilities, specs: string[]): Promise; afterTest(_test: Frameworks.Test, _context: any, results: Frameworks.TestResult): void; afterScenario(world: World): void; after(): Promise; onComplete(): Promise; } export {};