import type { AuthData } from "./types.js"; export declare const DEFAULT_KIMI_AUTH_CACHE_MAX_AGE_MS = 5000; export type KimiKeySource = "env:KIMI_API_KEY" | "env:KIMI_CODE_API_KEY" | "opencode.json" | "opencode.jsonc" | "auth.json"; export type ResolvedKimiAuth = { state: "none"; } | { state: "configured"; apiKey: string; } | { state: "invalid"; error: string; }; export type KimiAuthDiagnostics = { state: "none"; source: null; checkedPaths: string[]; authPaths: string[]; } | { state: "configured"; source: KimiKeySource; checkedPaths: string[]; authPaths: string[]; } | { state: "invalid"; source: "auth.json"; checkedPaths: string[]; authPaths: string[]; error: string; }; export { getGlobalOpencodeConfigCandidatePaths as getOpencodeConfigCandidatePaths } from "./api-key-resolver.js"; export declare function resolveKimiAuth(auth: AuthData | null | undefined): ResolvedKimiAuth; export declare function resolveKimiAuthCached(params?: { maxAgeMs?: number; }): Promise; export declare function getKimiAuthDiagnostics(params?: { maxAgeMs?: number; }): Promise; //# sourceMappingURL=kimi-auth.d.ts.map