import { Cause, Effect, Exit } from 'effect';
export function runEngineEffect(effect) {
    const exit = Effect.runSyncExit(effect);
    if (Exit.isSuccess(exit)) {
        return exit.value;
    }
    throw Cause.squash(exit.cause);
}
export async function runEngineEffectPromise(effect) {
    const exit = await Effect.runPromiseExit(effect);
    if (Exit.isSuccess(exit)) {
        return exit.value;
    }
    throw Cause.squash(exit.cause);
}
//# sourceMappingURL=live-effect.js.map