import { b as SnapshotState, c as SnapshotStateOptions, d as SnapshotResult, R as RawSnapshotInfo, D as DomainSnapshotAdapter } from './index.d-CuPTsptM.js'; export { f as DomainMatchResult, g as SnapshotData, S as SnapshotEnvironment, h as SnapshotMatchOptions, i as SnapshotSerializer, j as SnapshotSummary, k as SnapshotUpdateState, U as UncheckedSnapshot } from './index.d-CuPTsptM.js'; import { Plugin, Plugins } from '@vitest/pretty-format'; import '@vitest/utils'; interface AssertOptions { received: unknown; filepath: string; name: string; /** * Not required but needed for `SnapshotClient.clearTest` to implement test-retry behavior. * @default name */ testId?: string; message?: string; isInline?: boolean; properties?: object; inlineSnapshot?: string; error?: Error; errorMessage?: string; rawSnapshot?: RawSnapshotInfo; assertionName?: string; } interface AssertDomainOptions extends Omit { received: unknown; adapter: DomainSnapshotAdapter; } interface AssertDomainPollOptions extends Omit { poll: (options: { signal: AbortSignal; }) => Promise | unknown; timeout?: number; interval?: number; } /** Same shape as expect.extend custom matcher result (SyncExpectationResult from @vitest/expect) */ interface MatchResult { pass: boolean; message: () => string; actual?: unknown; expected?: unknown; } interface SnapshotClientOptions { isEqual?: (received: unknown, expected: unknown) => boolean; } declare class SnapshotClient { private options; snapshotStateMap: Map; constructor(options?: SnapshotClientOptions); setup(filepath: string, options: SnapshotStateOptions): Promise; finish(filepath: string): Promise; skipTest(filepath: string, testName: string): void; clearTest(filepath: string, testId: string): void; getSnapshotState(filepath: string): SnapshotState; match(options: AssertOptions): MatchResult; assert(options: AssertOptions): void; matchDomain(options: AssertDomainOptions): MatchResult; pollMatchDomain(options: AssertDomainPollOptions): Promise; assertRaw(options: AssertOptions): Promise; clear(): void; } declare function stripSnapshotIndentation(inlineSnapshot: string): string; /** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ declare function addSerializer(plugin: Plugin): void; declare function getSerializers(): Plugins; export { DomainSnapshotAdapter, SnapshotClient, SnapshotResult, SnapshotState, SnapshotStateOptions, addSerializer, getSerializers, stripSnapshotIndentation }; export type { MatchResult };