import { Project } from '../../constructs/index.js'; import type { DeployResourceSync, DiffEntry } from '../../rest/projects.js'; import { type RenderedLine } from './render.js'; /** * The text `checkly deploy` prints for a plan: what `--preview` shows, what * `--output` prints after a deploy, and what a deploy refused for a stale plan * prints in its place. Shaped like a plan: an overview of every touched * resource with a marker per action, the construct diff of each updated * resource, and the totals. The markers carry the meaning; colour is for a * terminal and chalk drops it for a pipe or under `NO_COLOR`. */ export declare enum ResourceDeployStatus { UPDATE = "UPDATE", CREATE = "CREATE", DELETE = "DELETE", DETACH = "DETACH", DETACHED = "DETACHED", UNCHANGED = "UNCHANGED" } /** How a resource type reads when there is no construct to name it by (a deleted resource, a relation). */ export declare const PRETTY_RESOURCE_TYPES: Record; export declare const NON_REPORTED_TYPES: string[]; export interface PreviewOutputInput { /** The heading line; none when the lines that follow name the deploy already. */ heading?: { title: string; projectName: string; accountName?: string; }; diff: DiffEntry[]; /** The plan was carried out: the totals read as what happened, not what would. */ done?: boolean; project: Project; /** Print each resource's name and id under its row. */ verbose?: boolean; /** Whether this deploy deletes the relations it does not manage. */ pruneRelations?: boolean; /** * The preview plan with each changed resource's deployed state, and the * local payload it was computed for: with these, every updated resource * prints the diff of its construct as deployed against as in code. */ rendering?: { plan: DiffEntry[]; local: DeployResourceSync[]; }; /** Printed with the command that deploys exactly this plan. */ planToken?: string; } export declare const MARKER: { create: string; update: string; delete: string; detach: string; prune: string; warn: string; skip: string; /** Written once to set the baseline; nothing differs that the comparison can show. */ baseline: string; }; export declare function formatPreview(input: PreviewOutputInput): string; /** One rendered line with its marker and colour; a nested line sits two columns further in. */ export declare function styled(line: RenderedLine): string;