import { HOST_GENERATION_ENV, HOST_INSTANCE_ID_ENV } from "./host-identity-env.ts";
import type { RpcLaunchProfile, RpcProtocolIdentity } from "./rpc-types.ts";
export { HOST_GENERATION_ENV, HOST_INSTANCE_ID_ENV };
/** Who this host is, for anything that has to name the process rather than describe it. */
export declare function hostInstanceId(): string;
/** Non-negative integer, or 0. A malformed value is a client bug and must not be reported as a real generation. */
export declare function hostGeneration(env: Readonly<Record<string, string | undefined>>): number;
/** Derives the launch profile from one argument vector. Pure: same argv and cwd, same profile. */
export declare function hostLaunchProfile(argv: readonly string[], cwd: string): RpcLaunchProfile;
/**
 * The launch profile a SOCKET host child started with `hostArgs` derives from its own argv. The
 * child always runs `--mode rpc --multi-session --listen <socket>`, and `--listen` is what makes its
 * session runtime `in-process`; the socket itself never enters the profile.
 */
export declare function socketHostLaunchProfile(hostArgs: readonly string[], cwd: string): RpcLaunchProfile;
/** The identity fields of this host's `get_protocol_info` answer. A socket host passes the agent dir it captured at startup; anything else reports this process's. */
export declare function protocolIdentity(agentDir?: string): RpcProtocolIdentity;
//# sourceMappingURL=protocol-identity.d.ts.map