import type { Project } from '../../constructs/project.js'; import type { WriteBackPlan } from './plan.js'; /** * What `checkly deploy` prints after writing the changes made in Checkly into * the code. Shaped like the plan the user just read: one header per resource * with its class, logical id and file, and under it the diff of the construct * source as it was against as it is now, in the plan's markers and colours. * What was not written is listed the same way, with the reason per property. */ export interface WriteBackOutputInput { writeBack: WriteBackPlan; project: Project; /** The directory file names are shown relative to. */ cwd: string; } /** * The block for the code that was updated: per construct, the diff of its * source, then what a diff cannot say (a property that replaced an edit the * code had made too, a helper the file now imports). */ export declare function formatWriteBackUpdated({ writeBack, project }: WriteBackOutputInput): string; /** * The block for what was not written: per resource, each property with the * reason, or the reason alone when it is about the whole resource. */ export declare function formatWriteBackSkipped({ writeBack, project, cwd }: WriteBackOutputInput): string;