import * as T from "../_internal/task"; import * as Ex from "../../Exit"; import type { Exit } from "../../Exit/model"; import { Managed } from "../model"; /** * Ensures that a cleanup function runs when this Managed is finalized, after * the existing finalizers. */ export declare const _onExit: ( self: Managed, cleanup: (exit: Ex.Exit) => T.Task ) => Managed; /** * Ensures that a cleanup function runs when this Managed is finalized, after * the existing finalizers. */ export declare const onExit: ( cleanup: (exit: Ex.Exit) => T.Task ) => (self: Managed) => Managed; //# sourceMappingURL=onExit.d.ts.map