/** * Kimi For Coding OAuth flow (device code) * * Authenticates against Moonshot's Kimi API (auth.kimi.com) using the current Kimi Code device identity. * Uses the device authorization grant flow to obtain access/refresh tokens, * then discovers the user's model entitlement via the /models endpoint. */ import type { OAuthCredentials, OAuthProviderInterface } from "./types.js"; /** * Build the standard set of headers required on every Kimi API request. */ export declare function buildKimiHeaders(): Record; export type KimiModelInfo = { id: string; display_name?: string; context_length: number; supports_reasoning?: boolean; supports_image_in?: boolean; supports_video_in?: boolean; supports_tool_use?: boolean; supports_thinking_type?: "only" | "no" | "both"; think_efforts?: { support?: boolean; valid_efforts?: string[]; default_effort?: string; }; protocol?: string; [key: string]: unknown; }; /** * List available models from the Kimi API. * Returns the model info array from the response's `data` field. */ export declare function listModels(accessToken: string, signal?: AbortSignal): Promise; export declare function loginKimiCoding(options: { onAuth: (info: { url: string; instructions?: string; }) => void; onProgress?: (message: string) => void; signal?: AbortSignal; }): Promise; export declare function refreshKimiCodingToken(credentials: OAuthCredentials, signal?: AbortSignal): Promise; export declare const kimiCodingOAuthProvider: OAuthProviderInterface; //# sourceMappingURL=kimi-coding.d.ts.map