import type { AuthData } from "./types.js"; export declare const DEFAULT_ZHIPU_AUTH_CACHE_MAX_AGE_MS = 5000; export type ZhipuKeySource = "env:ZHIPU_API_KEY" | "env:ZHIPU_CODING_PLAN_API_KEY" | "opencode.json" | "opencode.jsonc" | "auth.json"; export type ResolvedZhipuAuth = { state: "none"; } | { state: "configured"; apiKey: string; } | { state: "invalid"; error: string; }; export type ZhipuAuthDiagnostics = { state: "none"; source: null; checkedPaths: string[]; authPaths: string[]; } | { state: "configured"; source: ZhipuKeySource; 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 resolveZhipuAuth(auth: AuthData | null | undefined): ResolvedZhipuAuth; export declare function resolveZhipuAuthCached(params?: { maxAgeMs?: number; }): Promise; export declare function getZhipuAuthDiagnostics(params?: { maxAgeMs?: number; }): Promise; //# sourceMappingURL=zhipu-auth.d.ts.map