/** True when the caller asked for JSON, from either the global or local flag. */ export declare function jsonRequested(globalJson: unknown, localJson?: unknown): boolean; /** Print one JSON object to stdout, pretty-printed so a human can read it too. */ export declare function emitJson(value: unknown): void; /** * Report a recoverable error the way an agent can consume it: a JSON envelope * on stdout when `--json`, a clean `error:` line on stderr otherwise, and a * non-zero exit either way. Never throws, so callers can `return` right after. */ export declare function failJson(json: boolean, message: string, extra?: Record): void; //# sourceMappingURL=output.d.ts.map