import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * Adds a finalizer to the scope of this workflow. The finalizer is guaranteed
 * to be run when the scope is closed.
 * @tsplus static ets/Effect/Ops addFinalizer
 * @tsplus location "@effect/core/io/Effect/operations/addFinalizer"
 */
export declare function addFinalizer<R, X>(finalizer: LazyArg<Effect<R, never, X>>, __tsplusTrace?: string): Effect<R | Scope, never, void>;
//# sourceMappingURL=addFinalizer.d.ts.map