import AgentConfig from "../common/data/AgentConfig"; import { ConfigErrorCode } from "../common/constant/ShortloopCommonConstant"; class ConfigOrError { agentConfig: AgentConfig | undefined; errorCode: ConfigErrorCode | undefined; constructor( agentConfig: AgentConfig | null, errorCode: ConfigErrorCode | null ) { if (agentConfig) this.agentConfig = agentConfig; if (errorCode) this.errorCode = errorCode; } } export default ConfigOrError;