import type { AuthData } from "./types.js"; export declare const DEFAULT_ZAI_AUTH_CACHE_MAX_AGE_MS = 5000; export type ZaiKeySource = "env:ZAI_API_KEY" | "env:ZAI_CODING_PLAN_API_KEY" | "opencode.json" | "opencode.jsonc" | "auth.json"; export type ResolvedZaiAuth = { state: "none"; } | { state: "configured"; apiKey: string; } | { state: "invalid"; error: string; }; export type ZaiAuthDiagnostics = { state: "none"; source: null; checkedPaths: string[]; authPaths: string[]; } | { state: "configured"; source: ZaiKeySource; 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 resolveZaiAuth(auth: AuthData | null | undefined): ResolvedZaiAuth; export declare function resolveZaiAuthCached(params?: { maxAgeMs?: number; }): Promise; export declare function getZaiAuthDiagnostics(params?: { maxAgeMs?: number; }): Promise; //# sourceMappingURL=zai-auth.d.ts.map