import { join } from "node:path";
import { writePersistedConfig, readPersistedConfig } from "../../../persisted-config.js";
function saveInitConfig(dataDir, config) {
  const path = join(dataDir, "config.json");
  writePersistedConfig(path, { settings: config });
}
function readInitConfig(dataDir) {
  const path = join(dataDir, "config.json");
  return readPersistedConfig(path).settings;
}
export {
  readInitConfig,
  saveInitConfig
};
//# sourceMappingURL=config-writer.js.map