import type { Services, Frameworks } from '@wdio/types'; export interface SoftAssertionServiceOptions { autoAssertOnTestEnd?: boolean; cleanStack?: boolean; } /** * WebdriverIO service to integrate soft assertions into the test lifecycle */ export declare class SoftAssertionService implements Services.ServiceInstance { private softAssertService; options: Omit; constructor(serviceOptions?: SoftAssertionServiceOptions); /** * Hook before a test starts */ beforeTest(test: Frameworks.Test): void; /** * Hook before a Cucumber step starts */ beforeStep(step: Frameworks.PickleStep, scenario: Frameworks.Scenario): void; /** * Hook after a test completes */ afterTest(test: Frameworks.Test, _: unknown, result: Frameworks.TestResult): void; /** * Hook after a Cucumber step completes */ afterStep(step: Frameworks.PickleStep, scenario: Frameworks.Scenario, result: { passed: boolean; error?: Error; }): void; /** * Generate a unique test ID from a test object */ private getTestId; }