/** * Version of the protocol a parent deployment speaks with a remote agent's * deployment. A create-session request that delegates work names the caller's * version, and the receiver's response names its own. Deployments from before * the version existed speak 1. */ export declare const REMOTE_AGENT_PROTOCOL_VERSION = 2; /** Error code a receiver answers when the caller speaks another protocol version. */ export declare const REMOTE_AGENT_PROTOCOL_MISMATCH = "REMOTE_AGENT_PROTOCOL_MISMATCH"; /** Protocol of eve 0.66–0.68, which sent no version. */ export declare const UNVERSIONED_REMOTE_AGENT_PROTOCOL = 1; /** Reads a peer's protocol version, treating an absent one as the unversioned protocol. */ export declare function readRemoteAgentProtocolVersion(value: unknown): number; /** The caller's message when a remote agent's deployment speaks another version. */ export declare function formatRemoteAgentProtocolMismatch(input: { readonly name: string; readonly receiverVersion: number; }): string;