const require_DidCommDidExchangeState = require('./DidCommDidExchangeState.js');

//#region ../didcomm/src/modules/connections/models/DidCommConnectionState.ts
/**
* Connection states as defined in RFC 0160.
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0160-connection-protocol/README.md#states
*/
let DidCommConnectionState = /* @__PURE__ */ function(DidCommConnectionState$1) {
	DidCommConnectionState$1["Null"] = "null";
	DidCommConnectionState$1["Invited"] = "invited";
	DidCommConnectionState$1["Requested"] = "requested";
	DidCommConnectionState$1["Responded"] = "responded";
	DidCommConnectionState$1["Complete"] = "complete";
	return DidCommConnectionState$1;
}({});
function rfc0160StateFromDidExchangeState(didExchangeState) {
	return {
		[require_DidCommDidExchangeState.DidCommDidExchangeState.Start]: DidCommConnectionState.Null,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.Abandoned]: DidCommConnectionState.Null,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.InvitationReceived]: DidCommConnectionState.Invited,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.InvitationSent]: DidCommConnectionState.Invited,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.RequestReceived]: DidCommConnectionState.Requested,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.RequestSent]: DidCommConnectionState.Requested,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.ResponseReceived]: DidCommConnectionState.Responded,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.ResponseSent]: DidCommConnectionState.Responded,
		[require_DidCommDidExchangeState.DidCommDidExchangeState.Completed]: DidCommConnectionState.Complete
	}[didExchangeState];
}

//#endregion
exports.DidCommConnectionState = DidCommConnectionState;
exports.rfc0160StateFromDidExchangeState = rfc0160StateFromDidExchangeState;