import { type OpenCodeBinaryType, type OpenCodeConfigPaths } from "../shared"; import type { ConfigMergeResult, DetectedConfig, InstallConfig } from "./types"; interface ConfigContext { binary: OpenCodeBinaryType; version: string | null; paths: OpenCodeConfigPaths; } export declare function initConfigContext(binary: OpenCodeBinaryType, version: string | null): void; export declare function getConfigContext(): ConfigContext; export declare function resetConfigContext(): void; export declare function fetchLatestVersion(packageName: string): Promise; type ConfigFormat = "json" | "jsonc" | "none"; export declare function detectConfigFormat(): { format: ConfigFormat; path: string; }; export declare function addPluginToOpenCodeConfig(): ConfigMergeResult; export declare function generateOmoConfig(installConfig: InstallConfig): Record; export declare function writeOmoConfig(installConfig: InstallConfig): ConfigMergeResult; export declare function isOpenCodeInstalled(): Promise; export declare function getOpenCodeVersion(): Promise; export declare function addAuthPlugins(config: InstallConfig): Promise; export declare function setupChatGPTHotfix(): ConfigMergeResult; export interface BunInstallResult { success: boolean; timedOut?: boolean; error?: string; } export declare function runBunInstall(): Promise; export declare function runBunInstallWithDetails(): Promise; export declare const ANTIGRAVITY_PROVIDER_CONFIG: { google: { name: string; models: { "gemini-3-pro-high": { name: string; thinking: boolean; attachment: boolean; limit: { context: number; output: number; }; modalities: { input: string[]; output: string[]; }; }; "gemini-3-pro-medium": { name: string; thinking: boolean; attachment: boolean; limit: { context: number; output: number; }; modalities: { input: string[]; output: string[]; }; }; "gemini-3-pro-low": { name: string; thinking: boolean; attachment: boolean; limit: { context: number; output: number; }; modalities: { input: string[]; output: string[]; }; }; "gemini-3-flash": { name: string; attachment: boolean; limit: { context: number; output: number; }; modalities: { input: string[]; output: string[]; }; }; "gemini-3-flash-lite": { name: string; attachment: boolean; limit: { context: number; output: number; }; modalities: { input: string[]; output: string[]; }; }; }; }; }; export declare function addProviderConfig(config: InstallConfig): ConfigMergeResult; export declare function detectCurrentConfig(): DetectedConfig; export {};