///
import type { AssertViewOpts } from "testplane";
import type { AutoScreenshotStorybookGlobals } from "./storybook/story-test-runner/types";
import type { Inheritable } from "./storybook/story-test-runner/inheritable-values";
export type TestFunctionExtendedCtx = TestFunctionCtx & {
expect: ExpectWebdriverIO.Expect;
};
export type TestplaneTestFunction = (this: TestFunctionExtendedCtx, ctx: TestFunctionExtendedCtx) => void | Promise;
interface StorybookMetaConfig {
component?: unknown;
}
type Combined = B extends void ? N : N & B;
type TestplaneStoryFileConfig = {
skip?: boolean;
assertViewOpts?: Inheritable;
browserIds?: Array;
autoScreenshots?: boolean;
autoscreenshotSelector?: string;
autoScreenshotStorybookGlobals?: Inheritable;
};
export type TestplaneMetaConfig = Combined<{
/**
* @deprecated Use "testplaneConfig" instead of "testplane"
*/
testplane?: TestplaneStoryFileConfig;
testplaneConfig?: TestplaneStoryFileConfig;
}, T>;
export type TestplaneStoryConfig = Combined<{
testplane?: Record;
testplaneConfig?: TestplaneStoryFileConfig;
}, T>;
export type WithTestplane = T extends StorybookMetaConfig ? TestplaneMetaConfig : TestplaneStoryConfig;
export {};