import type { Api, Model, SimpleStreamOptions } from "@earendil-works/pi-ai/compat";
/**
 * Stream options that pin an Anthropic Messages session to one upstream account behind a
 * multi-account gateway (senpi#2553): `metadata.user_id` in the shape Claude Code sends, and the
 * session-affinity header where the model's compat sends one. Both carry an HMAC of the session id
 * under a per-install salt, so the gateway sees a stable key per session and never the session id
 * or any account or user identity. Request metadata sits outside the prompt-cache key, so the cached
 * prefix bytes are unchanged. A caller-supplied `metadata.user_id` wins.
 */
export declare function sessionAffinityStreamOptions(model: Model<Api>, options: SimpleStreamOptions | undefined, enabled: boolean, agentDir: string): Pick<SimpleStreamOptions, "metadata" | "sessionAffinityKey">;
//# sourceMappingURL=session-affinity-key.d.ts.map