/** * Xiaomi MiMo login flow. * * Xiaomi MiMo provides OpenAI-compatible models via * https://api.xiaomimimo.com/v1. * * Standard Xiaomi login accepts both pay-as-you-go keys and regional Token Plan * (`tp-...`/`ttp-...`) keys, probing the regional Token Plan clusters in fallback order. */ import type { OAuthController } from "./types.js"; /** * Request-time base URL for a Xiaomi `tp-`/`ttp-` key. Bundled and cached generic * Xiaomi rows pin the standard host, which rejects Token Plan keys. Only that * standard host (or a missing URL) is redirected. Explicit regional providers * select their region; generic Xiaomi login stores no region and defaults to SGP. * Every deliberate custom or regional endpoint and every ordinary key is kept. */ export declare function resolveXiaomiRequestBaseUrl(model: { provider?: string; baseUrl?: string; }, apiKey: string | undefined): string | undefined; /** * Login to Xiaomi MiMo. * * Opens browser to API keys page, prompts user to paste their API key. * Returns the API key directly (not OAuthCredentials - this isn't OAuth). */ export declare function loginXiaomi(options: OAuthController): Promise;