/** * Xiaomi MiMo login flow. * * Xiaomi MiMo provides OpenAI-compatible models via * https://api.xiaomimimo.com/v1. * * Standard Xiaomi login opens the pay-as-you-go API key console. Token Plan * login opens plan management so users copy the regional `tp-...` key. */ import type { OAuthController } from "./types"; /** Region codes accepted by the Xiaomi Token Plan login flow. */ export type XiaomiTokenPlanRegion = "sgp" | "ams" | "cn"; /** * 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; /** * Login to a regional Xiaomi Token Plan endpoint. * * Prompts for a token-plan API key and validates it against the selected region. */ export declare function loginXiaomiTokenPlan(options: OAuthController, region: XiaomiTokenPlanRegion): Promise;