import { ExtensionOwner, type ExtensionOwnerIdentity, type ExtensionOwnerWire } from "./extension-owner.ts";
import type { SessionConnectionContext } from "./session-connection-context.ts";
/**
 * Host half of a worker binding's extension owners (#4728). Gates are captured at ingress, before the
 * command's first await, and retired atomically before the isolate hears about it.
 */
export declare class WorkerOwnerGates {
    private generation;
    private readonly issued;
    capture(context: SessionConnectionContext, connection: string | undefined, command: object): ExtensionOwnerWire | undefined;
    /**
     * `connection` left this session. Only the incarnation that left is retired: a gate for a transport now
     * registered under the same routing string with a different owner was already retired with its transport.
     */
    detach(context: SessionConnectionContext, connection: string): ExtensionOwnerIdentity[];
    retireAll(): ExtensionOwnerIdentity[];
}
/** Isolate half: one owner object per issued gate, sharing the host's retirement word. */
export declare class IssuedWorkerOwners {
    private readonly owners;
    adopt(wire: ExtensionOwnerWire): ExtensionOwner;
    /** Exact identities only: a late notice for one incarnation never reaches another. */
    retire(identities: readonly ExtensionOwnerIdentity[]): void;
}
//# sourceMappingURL=session-worker-owners.d.ts.map