import type { Translator } from "@translated/lara"; /** * The subset of the SDK's internal LaraClient this server depends on. * `Translator.client` is `protected` in the type declarations only; everything * below reaches it through the single cast in getLaraClient(). */ interface LaraClientShape { /** * The Lara access token the SDK holds: the result of its own /v2/auth * exchange of the access key. Populated lazily, on the first request. */ token?: string; setExtraHeader?: (name: string, value: string) => void; } /** * Single guarded accessor for the Translator's internal LaraClient — the only * place that casts through `protected`. Callers check the specific capability * they need; this centralizes the cast and the "client itself is gone" * detection so an SDK change surfaces in one spot. */ export declare function getLaraClient(translator: Translator): LaraClientShape | undefined; /** * The claims of a Lara access token, read without verifying the signature or `exp`: Lara checks * both on every request, here we only read facts out of our own credential. */ export declare function tokenClaims(token: unknown): any; export {};