import { ImageSnapshotComparisonInfo, MatchImageSnapshotOptions } from "./types.mjs"; import { VisOptions } from "../config/types.mjs"; import { ObjectPlus } from "type-plus"; //#region src/shared/commands.types.d.ts interface PrepareImageSnapshotComparisonCommand { prepareImageSnapshotComparison: (taskId: string, subject: string, options?: MatchImageSnapshotOptions | undefined) => Promise; } interface PreparePageImageSnapshotComparisonCommand { preparePageImageSnapshotComparison: (taskId: string, options?: MatchImageSnapshotOptions | undefined) => Promise; } interface SetupVisSuiteCommand { /** * Sets up the visual testing suite by cleaning up previous snapshot and diff output directories. * When this command is run for the first time, * it will remove the results and diffs directory of all suites. * * In subsequent runs, it will only remove the results and diffs directory of the current suite. */ setupVisSuite: () => Promise>; } interface LoadImageSnapshotResultsCommand { loadImageSnapshotResults(taskId: string): Promise; } interface ImageSnapshotResult { filename: string; /** * The base64 encoded image of the baseline snapshot. */ baseline?: string | undefined; /** * The base64 encoded image of the result snapshot. */ result?: string | undefined; /** * The base64 encoded image of the diff snapshot. */ diff?: string | undefined; } interface HasImageSnapshotCommand { hasImageSnapshot(taskId: string, snapshotKey: string | undefined): Promise; } interface ImageSnapshotNextIndexCommand { /** * Get the index of the snapshot image to be created. */ imageSnapshotNextIndex(taskId: string): Promise; } //#endregion export { HasImageSnapshotCommand, ImageSnapshotNextIndexCommand, ImageSnapshotResult, LoadImageSnapshotResultsCommand, PrepareImageSnapshotComparisonCommand, PreparePageImageSnapshotComparisonCommand, SetupVisSuiteCommand }; //# sourceMappingURL=commands.types.d.mts.map