/** * Output formatters — JsonFormatter and MinimalFormatter. * * These format a RunSummary for non-interactive output. `JsonFormatter` * emits machine-readable JSON. `MinimalFormatter` emits a compact * one-line-per-resource format. */ import type { RunMode, RunSummary } from "../core/types.ts"; import type { RedactionPolicy } from "../core/serialize.ts"; import type { LifecycleEvent } from "./events.ts"; /** * Formats a RunSummary as JSON. * * Serializes the full summary including per-host results. Errors are * serialized as `{ message, name }` since Error objects don't JSON.stringify * by default. * * Also supports formatting individual lifecycle events for schema-consistent * output. */ export declare class JsonFormatter { #private; constructor(opts?: { redactionPolicy?: RedactionPolicy | undefined; }); /** Format a RunSummary as a JSON string. */ format(summary: RunSummary): string; /** Format a single lifecycle event as a JSON string. */ formatEvent(event: LifecycleEvent): string; } /** * Formats a RunSummary as compact one-line-per-resource output. * * Each resource is a single line: `status type name (duration)`. * Each host gets a summary line at the end. In check mode, "changed" * is displayed as "would change". */ export declare class MinimalFormatter { #private; constructor(mode: RunMode); /** Format a RunSummary as a minimal string. */ format(summary: RunSummary): string; } //# sourceMappingURL=formats.d.ts.map