import type { ParsedArgs } from "./args.js"; /** * Output format requested via `--format`. Defaults to `text`. `json` * produces a single machine-readable JSON document on stdout. Other * values are treated as `text`. */ export type OutputFormat = "text" | "json"; export declare function resolveFormat(args: ParsedArgs): OutputFormat; export declare function isJson(args: ParsedArgs): boolean; /** * Print a value as pretty-printed JSON to stdout (with a trailing * newline so editors / pagers terminate cleanly). The value goes * through `JSON.stringify`, which respects any `toJSON()` methods — * notably, `todo()` sentinels serialise to `{ "$todo": "reason" }`. */ export declare function emitJson(value: unknown): void; //# sourceMappingURL=format.d.ts.map