/** * A snapshot file as it exists locally, before any upload. `sha256` describes * the file's content, so a snapshot can be reported to Checkly — in a deploy * preview, for instance — while `key`, which only the upload produces, is * still unknown. */ export interface RawSnapshot { absolutePath: string; path: string; sha256: string; } export interface Snapshot { key: string; path: string; /** Absent on snapshots read back from the API, which only stores it on deploy. */ sha256?: string; } /** * The content hashes only a deploy sends. * * A check's payload is synthesized the same way for a deploy and for a test * session, but only the deploy compares content hashes — and only the deploy * schemas accept them. Keeping them out of a run request means a CLI published * before the matching API is deployed still runs tests, rather than having * every browser check with snapshots and every Playwright suite rejected. */ export declare function stripContentHashes>(payload: T): T; export declare function pullSnapshots(basePath: string, snapshots?: Snapshot[] | null): Promise; export declare function detectSnapshots(projectBasePath: string, scriptFilePath: string): Promise; export declare function uploadSnapshots(rawSnapshots?: RawSnapshot[]): Promise;