import type { RpcCommand, RpcResponse } from "./rpc-types.ts";
import type { OpenRpcSession } from "./session-registry.ts";
import type { RouterContext } from "./session-router-context.ts";
export type OpenAcceptance = (opened: OpenRpcSession) => Promise<void>;
type OpenCommand = Extract<RpcCommand, {
    type: "open_session" | "attach_session";
}>;
/** Register the client's ID before physical open; identical pending/completed retries never open again. */
export declare function compactOpen(host: RouterContext, command: OpenCommand, physical: (accept: OpenAcceptance, signal: AbortSignal) => Promise<RpcResponse | undefined>): Promise<RpcResponse | undefined>;
export {};
//# sourceMappingURL=compact-open-admission.d.ts.map