import { ParsedStack } from '@vitest/utils'; interface SnapshotEnvironment { getVersion: () => string; getHeader: () => string; resolvePath: (filepath: string) => Promise; resolveRawPath: (testPath: string, rawPath: string) => Promise; saveSnapshotFile: (filepath: string, snapshot: string) => Promise; readSnapshotFile: (filepath: string) => Promise; removeSnapshotFile: (filepath: string) => Promise; processStackTrace?: (stack: ParsedStack) => ParsedStack; } interface SnapshotEnvironmentOptions { snapshotsDirName?: string; } export type { SnapshotEnvironment as S, SnapshotEnvironmentOptions as a };