/** * How far the auth gateway trusts a caller with each {@link SimpleStreamOptions} * key: * - `client`: what is being asked of the model. Any caller may set it. * - `gateway`: who the request is from, who pays, or how the gateway talks to * the provider. Only the unscoped gateway token may set it; a scoped client's * value is dropped (see `clients.ts`). * - `server`: never accepted from the wire. */ import type { SimpleStreamOptions } from "../types.js"; /** Option keys a gateway request may carry; the pi-native parser drops every other key. */ export declare const WIRE_OPTION_KEYS: ReadonlySet; /** * Apply the caller's trust to the options a chat route sends upstream: a scoped * client loses every `gateway` option, and the unscoped gateway token gets the * allow-listed request headers merged under its own. Call it on the * upstream-bound options only; response encoders read the caller's parsed * request (the Anthropic encoder answers the caller's `anthropic-beta`). */ export declare function applyCallerTrust(opts: SimpleStreamOptions, req: Request, scoped: boolean): void;