/** Print JSON response to stdout. All other output must go to stderr when --json is active. */
export function printJson(response) {
    process.stdout.write(JSON.stringify(response, null, 2) + '\n');
}
/** Check if --json flag is active on the root program */
export function isJsonMode() {
    return process.env['TOTEM_JSON_OUTPUT'] === '1';
}
//# sourceMappingURL=json-output.js.map