/** * Backend routing for CLI-side image hosting. * * `uploadImage()` (see `./generated-images.ts`) needs the backend base url * and the machine JWT. Those are exactly the credentials `agent-bridge.ts` * receives for text models, so anything in the CLI that wants to host an * image (generated images, tool screenshots, ...) resolves them the same way. * * Returns `null` when the CLI is not logged in / the JWT expired — callers * then keep the image local (inline base64 / file on disk) instead of * failing the turn. * * @module @spectral/backend/machine-routing */ export interface BackendRouting { backendUrl: string; machineJwt: string; } /** * Resolve `backendUrl` + `machineJwt`, mirroring how `agent-bridge.ts` obtains * them (`serve.ts` → `registration.record`). `SPECTRAL_BACKEND_URL` wins over * the configured api url so dev/staging overrides keep working. */ export declare function resolveBackendRouting(): Promise; //# sourceMappingURL=machine-routing.d.ts.map