import { Exit } from "@effect/core/io/Exit/definition";
import { Scope } from "@effect/core/io/Scope/definition";
export declare type State = Exited | Running;
export declare class Exited {
    readonly nextKey: number;
    readonly exit: Exit<any, any>;
    readonly update: (finalizer: Scope.Finalizer) => Scope.Finalizer;
    readonly _tag = "Exited";
    constructor(nextKey: number, exit: Exit<any, any>, update: (finalizer: Scope.Finalizer) => Scope.Finalizer);
}
export declare class Running {
    readonly nextKey: number;
    readonly _finalizers: Map<number, Scope.Finalizer>;
    readonly update: (finalizer: Scope.Finalizer) => Scope.Finalizer;
    readonly _tag = "Running";
    constructor(nextKey: number, _finalizers: Map<number, Scope.Finalizer>, update: (finalizer: Scope.Finalizer) => Scope.Finalizer);
    finalizers(): Map<number, Scope.Finalizer>;
}
//# sourceMappingURL=State.d.ts.map