import type { Task } from "../../Task/model"; import type { Managed } from "../model"; /** * 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( f: Task ): (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: Task ): Managed; //# sourceMappingURL=ensuringFirst.d.ts.map