import type { Effect } from "../../Effect/index.js"; import type { Managed } from "../managed.js"; /** * Ensures that `f` is executed when this `Managed` is finalized, before * the existing finalizer. * * For use cases that need access to the Managed's result, see `onExitFirst`. * * @ets_data_first ensuringFirst_ */ export declare function ensuringFirst(f: Effect, __trace?: string): (self: Managed) => Managed; /** * Ensures that `f` is executed when this `Managed` is finalized, before * the existing finalizer. * * For use cases that need access to the Managed's result, see `onExitFirst_`. */ export declare function ensuringFirst_(self: Managed, f: Effect, __trace?: string): Managed; //# sourceMappingURL=ensuringFirst.d.ts.map