/** Native Settings section for the external Codex provider plugin. */ import type { ReactNode } from 'react'; import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'; import type { StateDotState } from '@deepseek-ai/dsh-client-ui-primitives'; import type { CodexAuthFailureReason, CodexAuthState, CodexNetworkIssue, CodexNetworkRoute, CodexProxyMode } from '../types.ts'; import type { CodexAuthCardFace } from './controller.ts'; import type { CodexSettingsKey } from './locales.ts'; /** Plugin-owned dependencies bound into the Settings section. */ export interface CodexSettingsInjected extends CodexAuthCardFace { /** Active DSH locale id, read at render time so date/number formatting follows language changes. */ getLocale: () => string; } /** Props bound by the Settings section slot. */ export type CodexSettingsSectionProps = PropsRuntime<'plugins.row.config'> & PropsLocale<'settings.codexProvider'> & InjectFace; /** Whether an auth phase owns a login still in progress. */ export declare function isLoginActive(state: CodexAuthState): boolean; /** Resolve the state-dot semantic for one auth phase. */ export declare function authDot(state: CodexAuthState): StateDotState; /** Resolve the localized status key for one auth phase. */ export declare function authLabel(state: CodexAuthState): CodexSettingsKey; /** Resolve actionable UI copy for one secret-free Host failure reason. */ export declare function authFailureLabel(reason: CodexAuthFailureReason): CodexSettingsKey; export declare function networkRouteLabel(route: CodexNetworkRoute): CodexSettingsKey; export declare function proxyModeLabel(mode: CodexProxyMode): CodexSettingsKey; export declare function networkIssueLabel(issue: CodexNetworkIssue): CodexSettingsKey; /** Summarize the provider row or render its full configuration page. */ export declare function CodexSettingsSection(props: CodexSettingsSectionProps): ReactNode;