interface ParsedStack { method: string; file: string; line: number; column: number; } 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 { ParsedStack as P, SnapshotEnvironment as S, SnapshotEnvironmentOptions as a };