import { c as defaultRuntime } from "./subsystem-_lp1q2Mi.js";
import { Writable } from "node:stream";

//#region ../../src/cli/daemon-cli/response.ts
function emitDaemonActionJson(payload) {
	defaultRuntime.log(JSON.stringify(payload, null, 2));
}
function buildDaemonServiceSnapshot(service, loaded) {
	return {
		label: service.label,
		loaded,
		loadedText: service.loadedText,
		notLoadedText: service.notLoadedText
	};
}
function createNullWriter() {
	return new Writable({ write(_chunk, _encoding, callback) {
		callback();
	} });
}

//#endregion
export { createNullWriter as n, emitDaemonActionJson as r, buildDaemonServiceSnapshot as t };