import type { SessionProvider, SystemAiConfig } from "./types.js"; export declare function normalizeSystemAiConfig(value: unknown, fallback?: SystemAiConfig): SystemAiConfig; /** Copy every usable direct-API profile from the user's configured CLIs. */ export declare function discoverCliSystemAiConfigs(preferred?: SessionProvider, home?: string): SystemAiConfig[]; /** Backward-compatible first-profile discovery. */ export declare function discoverCliSystemAiConfig(preferred?: SessionProvider, home?: string): SystemAiConfig | null; /** Return the configured API chain in call order, excluding incomplete entries. */ export declare function systemAiProfiles(config: SystemAiConfig | undefined, forceEnabled?: boolean): SystemAiConfig[]; /** * Flatten and combine direct-API groups in caller-defined priority order. * Later groups are appended after earlier groups and duplicate routes are skipped. */ export declare function mergeSystemAiConfigs(...groups: Array): SystemAiConfig | undefined; export declare function callSystemAiText(prompt: string, config: SystemAiConfig, timeoutMs?: number): Promise; /** Try every configured API in order. Empty responses are treated as unavailable. */ export declare function callSystemAiTextWithFallback(prompt: string, config: SystemAiConfig, timeoutMs?: number): Promise;