"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CustomState=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),state_1=require("./state"),__1=require("..");class CustomState extends state_1.State{constructor(scope,id,props){super(scope,id,{});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_CustomStateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CustomState),error}this.endStates=[this],this.stateJson=props.stateJson}next(next){try{jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_IChainable(next)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.next),error}return super.makeNext(next.startState),__1.Chain.sequence(this,next)}toStateJson(){return{...this.renderNextEnd(),...this.stateJson}}}exports.CustomState=CustomState,_a=JSII_RTTI_SYMBOL_1,CustomState[_a]={fqn:"aws-cdk-lib.aws_stepfunctions.CustomState",version:"2.96.1"};
