/** Shared CLI output helpers — one place for stdout/stderr formatting. */
export function printText(text) {
    process.stdout.write(`${text}\n`);
}
export function printError(message) {
    process.stderr.write(`error: ${message}\n`);
}
/** Pretty JSON by default; `raw` switches to compact JSON for piping. */
export function printJson(value, raw = false) {
    const text = raw ? JSON.stringify(value) : JSON.stringify(value, null, 2);
    process.stdout.write(`${text}\n`);
}
//# sourceMappingURL=output.js.map