

const require_Logger = require('../logger/Logger.js');
const require_ConsoleLogger = require('../logger/ConsoleLogger.js');

//#region src/agent/AgentConfig.ts
var AgentConfig = class AgentConfig {
	constructor(initConfig, agentDependencies) {
		this.initConfig = initConfig;
		this.logger = initConfig.logger ?? new require_ConsoleLogger.ConsoleLogger(require_Logger.LogLevel.off);
		this.agentDependencies = agentDependencies;
	}
	get allowInsecureHttpUrls() {
		return this.initConfig.allowInsecureHttpUrls ?? false;
	}
	get autoUpdateStorageOnStartup() {
		return this.initConfig.autoUpdateStorageOnStartup ?? false;
	}
	extend(config) {
		return new AgentConfig({
			...this.initConfig,
			logger: this.logger,
			...config
		}, this.agentDependencies);
	}
	toJSON() {
		return {
			...this.initConfig,
			logger: this.logger.logLevel,
			agentDependencies: Boolean(this.agentDependencies)
		};
	}
};

//#endregion
exports.AgentConfig = AgentConfig;