import type { ClientConfig, InferenceFeatureId } from "@opengeni/sdk"; import type { OpenGeniText } from "./messages/runtime.js"; /** * EU-only inference in the UI. The server decides what an EU-only workspace * can use from its residency records and reports anything switched off with * the reason `region_restricted`: on models (`availability.reason`), live * voice models (`unavailableCode`), transcription models and errors, agent * capabilities, and every model-backed feature in * `ClientConfig.inferenceFeatures`. Each surface passes the reason it got * through here, so they all say "Not supported in EU". Nothing here reads a * model's or provider's name. */ export declare const REGION_RESTRICTED = "region_restricted"; /** Whether a reason the server reported means "switched off for EU-only". */ export declare function isRegionRestricted(reason: string | null | undefined): boolean; /** "Not supported in EU" for a region restriction, otherwise null. */ export declare function regionRestrictedText(t: OpenGeniText, reason: string | null | undefined): string | null; /** * "Not supported in EU" when the server switched this feature off for the * workspace, otherwise null. Older servers don't report features: null. */ export declare function inferenceFeatureRestriction(t: OpenGeniText, config: Pick | null | undefined, feature: InferenceFeatureId): string | null;