import type { OpenRpcSession, RpcSessionEntry } from "./session-registry.ts";
import type { RouterContext } from "./session-router-context.ts";
/** A dropped opener waits until its open or claim has either transferred or released ownership. */
export declare function holdOpenConnection(host: RouterContext, owner: string): () => void;
/** One ownership transition for both a freshly built open and a claimed speculative open. */
export declare function ownOpen(host: RouterContext, opened: OpenRpcSession, owner: string | undefined, compact?: boolean): void;
export declare function publishOpen(host: RouterContext, opened: OpenRpcSession, entry: RpcSessionEntry): void;
/**
 * An open whose reply is another command's answer (senpi#6267: a `move_session import` that opens what it landed): the
 * reply goes out under that command, with `data` beside the open's own.
 */
export interface OpenReplyAs {
    readonly command: {
        readonly type: "move_session";
        readonly id?: string;
    };
    readonly data: Readonly<Record<string, unknown>>;
}
export declare function replyOpen(host: RouterContext, opened: OpenRpcSession, entry: RpcSessionEntry, command: {
    readonly type: "open_session" | "claim_session" | "move_session";
    readonly id?: string;
}, reply?: boolean, beside?: Readonly<Record<string, unknown>>): void;
//# sourceMappingURL=session-router-open-result.d.ts.map