import type { ExtensionRpcRequestContext } from "../../core/extensions/rpc-context.ts";
/** Private host/worker metadata, never accepted from public command JSON. */
export interface ExtensionOwnerWire {
    readonly ownerId: string;
    readonly bindingGeneration: string;
    readonly retirement: SharedArrayBuffer;
}
/** The identity a targeted output frame carries back; the shared word stays with the host's own gate. */
export type ExtensionOwnerIdentity = Pick<ExtensionOwnerWire, "ownerId" | "bindingGeneration">;
/** Commands whose handlers may run extension effects receive a captured owner; control commands never do. */
export declare function carriesExtensionOwner(command: object): boolean;
/** One attachment's shared effect gate plus isolate-local cancellation notification. */
export declare class ExtensionOwner {
    private readonly state;
    private readonly cancellation;
    readonly context: ExtensionRpcRequestContext;
    readonly wire: ExtensionOwnerWire;
    constructor(wire: ExtensionOwnerWire);
    get retired(): boolean;
    retire(): void;
}
/** Minted once per actual transport registration, independently of its reusable routing ID. */
export declare class ExtensionTransportOwner {
    readonly ownerId: `${string}-${string}-${string}-${string}-${string}`;
    private readonly bindings;
    private closed;
    get retired(): boolean;
    capture(bindingGeneration: string): ExtensionOwner;
    /** The gate already issued for a generation, without minting one. */
    peek(bindingGeneration: string): ExtensionOwner | undefined;
    retireBinding(bindingGeneration: string): void;
    retire(): void;
}
//# sourceMappingURL=extension-owner.d.ts.map