import type { AgentCapabilities, AgentConfig, AgentConfigSchema, AuthSetupGuidance, AuthState, ModelCapabilities, RemoteConnection, RunOptions, ServerHealth, ServerInfo, Session } from '@a5c-ai/comm-adapter'; import { BaseRemoteAdapter } from './remote-adapter-base.js'; export { CodexWebSocketConnection } from './codex-websocket-connection.js'; export declare class CodexWebSocketAdapter extends BaseRemoteAdapter { readonly agent: string; readonly displayName = "Codex (App Server)"; readonly connectionType: "websocket"; readonly minVersion = "0.121.0"; constructor(agent?: string); readonly hostEnvSignals: readonly ["CODEX_APP_SERVER", "OPENAI_API_KEY", "CODEX_CLI"]; readonly capabilities: AgentCapabilities; readonly models: ModelCapabilities[]; readonly defaultModelId = "o4-mini"; readonly configSchema: AgentConfigSchema; private readonly serverProcesses; connect(options: RunOptions): Promise; disconnect(connection: RemoteConnection): Promise; startServer(): Promise; stopServer(serverInfo: ServerInfo): Promise; healthCheck(serverInfo: ServerInfo): Promise; detectAuth(): Promise; getAuthGuidance(): AuthSetupGuidance; sessionDir(_cwd?: string): string; parseSessionFile(filePath: string): Promise; listSessionFiles(_cwd?: string): Promise; readConfig(_cwd?: string): Promise; writeConfig(config: Partial, _cwd?: string): Promise; protected ensureServer(): Promise; private waitForHealthy; private resolveCodexCommand; private findCommandInPath; private normalizeEndpoint; private extractPort; }