import * as tsplus_module_1 from "@effect/core/io/Cause/definition";
import * as tsplus_module_2 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_3 from "@effect/core/io/Cause/operations/find";
/**
 * Returns the value associated with the first `Die` in this `Cause` if
 * one exists.
 *
 * @tsplus getter ets/Cause dieMaybe
 */

export function dieMaybe(self) {
  return tsplus_module_3.find_(self, cause => tsplus_module_1.isDieType(cause) ? tsplus_module_2.some(cause.value) : tsplus_module_2.none);
}
//# sourceMappingURL=dieMaybe.mjs.map