import type { Translator } from "@translated/lara"; /** * The plan facts a Lara access token carries (`subscription.plan`). The JWT signature is never * checked here, so these are UX hints only: they word errors, and Lara still enforces the plan on * every request. Each value is validated before it can reach the metrics backend, which rejects a * whole batch over one odd field. */ export type LaraPlan = { name?: string; /** Lara's feature bitmask ("1111101111111111111"); which bit is which is not documented yet. */ features?: string; /** `limits.glossaries_number`: 0 means the plan has no glossaries. Absent: unknown, Lara decides. */ glossaries?: number; }; export declare function planFromToken(token: unknown): LaraPlan | undefined; /** * The plan of the token the Translator holds. The SDK exchanges the access key for a token on the * first request, so there is none before it: read it after a call, never to skip one. */ export declare const planOf: (lara: Translator) => LaraPlan | undefined; /** The plan as metrics metadata, under names that cannot clash with a call's own fields. */ export declare function planMetadata(plan: LaraPlan | undefined): Record; export declare function noGlossariesMessage(plan: LaraPlan | undefined): string;