import type { Cause } from "../Cause/cause.js"; import type { Exit } from "../Exit/exit.js"; import type { Effect } from "./effect.js"; /** * Execute a cleanup function when the effect completes */ export declare function onExit_(self: Effect, cleanup: (exit: Exit) => Effect, __trace?: string): Effect; /** * Execute a cleanup function when the effect completes * * @ets_data_first onExit_ */ export declare function onExit(cleanup: (exit: Exit) => Effect, __trace?: string): (self: Effect) => Effect; /** * Execute a cleanup function when the effect errors * * @ets_data_first onError_ */ export declare function onError(cleanup: (exit: Cause) => Effect, __trace?: string): (self: Effect) => Effect; /** * Execute a cleanup function when the effect errors */ export declare function onError_(self: Effect, cleanup: (exit: Cause) => Effect, __trace?: string): Effect; //# sourceMappingURL=onExit.d.ts.map