import type { FastifyRequest } from "fastify"; import type { UserIdentity } from "./types.js"; /** * Read user identity from the three X-Toolplex-User-* headers the * toolplex-api proxy injects. Returns undefined when any of the * mandatory fields (id, email) is missing — system / out-of-band * callers don't carry user identity, and handlers must decide how to * react to that on a case-by-case basis. * * No verification happens here: trust flows from the connection-level * bearer token (createAuthHook) — once we've accepted that the caller * IS the proxy, we accept what the proxy attests about who is behind * the request. See UserIdentity for the full rationale. */ export declare function readUserHeaders(request: FastifyRequest): UserIdentity | undefined; //# sourceMappingURL=user.d.ts.map