import type { Reservation } from "../Managed/index.js"; import type { Effect } from "./effect.js"; /** * Acquires a resource, uses the resource, and then releases the resource. * However, unlike `bracket`, the separation of these phases allows * the acquisition to be interruptible. * * Useful for concurrent data structures and other cases where the * 'deallocator' can tell if the allocation succeeded or not just by * inspecting internal / external state. * * @ets_data_first reserve_ */ export declare function reserve(use: (a: A) => Effect, __trace?: string): (reservation: Effect>) => Effect; /** * Acquires a resource, uses the resource, and then releases the resource. * However, unlike `bracket`, the separation of these phases allows * the acquisition to be interruptible. * * Useful for concurrent data structures and other cases where the * 'deallocator' can tell if the allocation succeeded or not just by * inspecting internal / external state. */ export declare function reserve_(reservation: Effect>, use: (a: A) => Effect, __trace?: string): Effect; //# sourceMappingURL=reserve.d.ts.map