import { type ComparisonMethod, type SnapshotMeta } from '../client.ts'; import type { SetupVisSuiteCommand } from '../server/commands/setup_vis_suite.ts'; /** * Visual test configuration on the client side. */ export type VisClientConfigurator> = { presets: { /** * Enable visual testing. * * auto snapshot is turned off by default. * You can specify the test to take a snapshot during `afterEach()` hook with `setAutoSnapshotOptions()`. */ enable(): void; /** * Enable visual testing. * * `setAutoSnapshotOptions` will have no effect in this preset. */ manual(): void; /** * Enable automatic visual testing. * * This will take a snapshot after each test. */ auto(): void; /** * Enable automatic visual testing with multiple themes. * * This will take a snapshot after each test for each theme. * * @param themes A record of theme names and their setup functions. * * @example * ```ts * vis().presets.theme({ * light() { document.body.classList.add('light') }, * dark() { document.body.classList.add('dark') }, * }) * ``` */ theme(themes: Record Promise | Promise | boolean | void>): void; }; beforeAll: { setup(): Promise; }; afterEach: { matchImageSnapshot(): Promise; matchPerTheme(themes: Record Promise | Promise | boolean | void>): () => Promise; }; }; export declare function createVis>(commands: SetupVisSuiteCommand): VisClientConfigurator; //# sourceMappingURL=create_vis.d.ts.map