import { SnapshotClient, type SnapshotResult, type SnapshotStateOptions, type SnapshotUpdateState } from '@vitest/snapshot'; import type { Services, Frameworks } from '@wdio/types'; export type SnapshotFormat = SnapshotStateOptions['snapshotFormat']; type ResolveSnapshotPathFunction = (path: string, extension: string) => string; interface SnapshotServiceArgs { updateState?: SnapshotUpdateState; resolveSnapshotPath?: ResolveSnapshotPathFunction; snapshotFormat?: SnapshotFormat; } /** * Snapshot service to take snapshots of elements. * The `@wdio/runner` module will attach this service to the test environment * so it can track the current test file and test name. * * @param {string} updateState update state * @return {SnapshotService} */ export declare class SnapshotService implements Services.ServiceInstance { #private; constructor(options?: SnapshotServiceArgs); get currentFilePath(): string | undefined; get currentTestName(): string | undefined; get client(): SnapshotClient; get results(): SnapshotResult[]; beforeTest(test: Frameworks.Test): Promise; beforeStep(step: Frameworks.PickleStep, scenario: Frameworks.Scenario): Promise; after(): Promise; static initiate(options?: SnapshotServiceArgs): SnapshotService; } export {};