import type { SDKOptions } from "../lib/config.js"; import type { SDKInitHook } from "./types.js"; export declare const BASE_URL_ENV_VAR = "OPENROUTER_BASE_URL"; /** * Uses the `OPENROUTER_BASE_URL` environment variable as the default server * URL, so gateways and hosting platforms that inject a base URL work with zero * config (matching `OPENAI_BASE_URL`, `ANTHROPIC_BASE_URL`, etc.). * * Resolution order, highest first: * 1. `options.serverURL` * 2. `options.server` (a named server from `ServerList`) * 3. `OPENROUTER_BASE_URL` * 4. The production server, `https://openrouter.ai/api/v1` * * The value must be the complete base URL including the version path. A value * that is set but is not a valid URL throws a `ZodError` when the client is * constructed, whether or not the value would have been used. * * This lives in a hook rather than in the generated `lib/config.ts` / * `lib/env.ts` so that it survives Speakeasy regeneration without relying on * persistent edits. As a result, only client construction honors the env var: * calling the generated `serverURLFromOptions()` directly does not read it. */ export declare class BaseURLEnvHook implements SDKInitHook { sdkInit(opts: SDKOptions): SDKOptions; } //# sourceMappingURL=base-url-env.d.ts.map