import type { ProjectSync } from '../../rest/projects.js'; /** * The deploy payload as a Checkly API without the preview endpoint accepts it. * * `sourceFile`, each snapshot's `sha256` and a Playwright check's * `codeBundleSha256` were all added alongside that endpoint. Older deploy * schemas reject a key they do not know rather than ignoring it, so a CLI * talking to one has to take them back out — otherwise every deploy against * such an API fails validation. * * A snapshot with no storage key is dropped: it describes a file that has not * been uploaded, which only a preview accepts, and an older API has no * preview. Dropping the entry leaves the check's snapshots as they are rather * than failing the deploy. * * Returns a copy, so the caller can still send the full payload to an API that * does support the endpoint. * * Temporary by design: once every API a supported CLI talks to accepts these * fields, this function and its call site go away. */ export declare function stripUnsupportedDeployFields(payload: ProjectSync): ProjectSync;