import { a as InspectResult, g as SwitchOptions, h as SettingsResult, i as EditOptions, n as ConfigObject, p as SettingsListData, r as ConfigValue, u as Scope } from "../../../types-KR94Pl4P.js"; import "../../../interfaces-CpcX0CPB.js"; import { t as BaseAdapter } from "../../../base-CJfC5KqX.js"; //#region src/services/settings/adapters/codex.d.ts /** * Resolves ~/.codex/config.toml (user scope) and supports profile switching */ declare class CodexAdapter extends BaseAdapter { #private; readonly toolId: "codex"; /** * Custom list implementation that focuses on model_providers */ list(scope: Scope): Promise; /** * Override inspect to return the current active configuration */ inspect(scope: Scope, name?: string): Promise; /** * Resolve the config path */ resolvePath(scope: Scope): string; /** * Validate the supported scope */ validateScope(scope: Scope): boolean; /** * Switch to a different Codex profile (provider or auth profile) */ switchProfile(scope: Scope, profile: string, _options?: SwitchOptions): Promise; edit(scope: Scope, options: EditOptions): Promise; /** * List all auth profiles */ listAuthProfiles(): string[]; /** * Check if a name is an auth profile */ isAuthProfile(name: string): boolean; /** * Save current auth as a profile * After saving, deletes auth.json so user can login with another account */ saveAuthProfile(name: string, force?: boolean): SettingsResult; /** * Delete an auth profile */ deleteAuthProfile(name: string): SettingsResult; /** * Get all switchable profiles (providers + auth profiles) */ getAllSwitchableProfiles(scope: Scope): { providers: string[]; authProfiles: string[]; }; /** * Read the TOML configuration */ protected readConfig(path: string): ConfigObject; /** * Write the TOML configuration */ protected writeConfig(path: string, data: ConfigObject): void; } declare const isConfigObject: (value: ConfigValue | undefined) => value is ConfigObject; //#endregion export { CodexAdapter, isConfigObject };