import type { OpenRpcSession } from "./session-registry.ts";
/** Owns both in-flight builds and ready parks, including the races with claim, expiry and shutdown. */
export declare class HostParkLedger {
    private readonly parks;
    private readonly replacements;
    private stopped;
    private readonly close;
    constructor(close: (opened: OpenRpcSession) => Promise<void>);
    get size(): number;
    park(key: string, build: () => Promise<OpenRpcSession>): Promise<"parked" | "already_parked" | "full">;
    /** A claim never waits for a build, and consumes the ready park synchronously. */
    take(key: string): OpenRpcSession | undefined;
    finish(key: string): void;
    replace(key: string, build: () => Promise<OpenRpcSession>): void;
    /** Fences new builds synchronously; every build already accepted is closed when it finishes. */
    stop(): Promise<void>;
    private retire;
}
//# sourceMappingURL=host-park-ledger.d.ts.map