import { ReleaseMap } from "@effect/core/io/Scope/ReleaseMap/definition";
import { Scope } from "@effect/core/io/Scope/definition";
import { Effect } from "@effect/core/io/Effect/definition";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
/**
 * Replaces the finalizer associated with this key and returns it. If the
 * finalizers associated with this scope have already been run this
 * finalizer will be run immediately.
 * @tsplus fluent ets/ReleaseMap replace
 * @tsplus location "@effect/core/io/Scope/ReleaseMap/operations/replace"
 */
export declare function replace_(self: ReleaseMap, key: number, finalizer: Scope.Finalizer, __tsplusTrace?: string): Effect<never, never, Maybe<Scope.Finalizer>>;
/**
 * Replaces the finalizer associated with this key and returns it. If the
 * finalizers associated with this scope have already been run this
 * finalizer will be run immediately.
 * @tsplus static ets/ReleaseMap/Aspects replace
 * @tsplus pipeable ets/ReleaseMap replace
 * @tsplus location "@effect/core/io/Scope/ReleaseMap/operations/replace"
 */
export declare const replace: (key: number, finalizer: Scope.Finalizer, __tsplusTrace?: string) => (self: ReleaseMap) => import("../../../Effect").Effect<never, never, import("@tsplus/stdlib/data/Maybe").Maybe<import("../../definition").Scope.Finalizer>>;
//# sourceMappingURL=replace.d.ts.map