import type { ActiveAgentSessionIdentity, AgentSessionCapabilities, CodexOpenRootRolloutInventory, CodingAgentSessionProvider, ForkContextOptions } from "./agent-session-provider.js"; import { type ActiveCodexProcess, type CodexProcessSnapshot, type CodexSessionSummary, type CodexThreadRow, type ForkContextPackage } from "./codex-session-provider.js"; export interface CodexLocalSessionAdapter { listThreadRows(): Promise; readRollout(path: string): Promise; listProcessSnapshots(): Promise; resolveActiveSessionIdentityForPid?(pid: number, cwd?: string, preferredSessionId?: string, allowedCompanionIdentity?: ActiveAgentSessionIdentity, allowedAdditionalIdentities?: readonly ActiveAgentSessionIdentity[]): Promise; inspectOpenRootRolloutInventoryForPid?(pid: number, cwd?: string): Promise; } export declare class InlineCodexLocalSessionAdapter implements CodexLocalSessionAdapter { private readonly threads; private readonly processes; private readonly processBatches; private processBatchIndex; private readonly rollouts; private readonly activeSessionIdentities; constructor({ threads, processes, rollouts, activeSessionIdentities }: { threads?: CodexThreadRow[]; processes?: CodexProcessSnapshot[] | CodexProcessSnapshot[][]; rollouts?: Record; activeSessionIdentities?: Record; }); listThreadRows(): Promise; readRollout(rolloutPath: string): Promise; listProcessSnapshots(): Promise; resolveActiveSessionIdentityForPid(pid: number): Promise; } export declare class CodexLocalSessionProvider implements CodingAgentSessionProvider { readonly agent: "codex"; private readonly adapter; constructor(adapter: CodexLocalSessionAdapter); getCapabilities(): Promise; listHistoricalSessions(): Promise; listActiveSessions(): Promise; resolveActiveSessionIdentityForPid(pid: number, cwd?: string, preferredSessionId?: string, allowedCompanionIdentity?: ActiveAgentSessionIdentity, allowedAdditionalIdentities?: readonly ActiveAgentSessionIdentity[]): Promise; inspectOpenRootRolloutInventoryForPid(pid: number, cwd?: string): Promise; getSession(sessionId: string): Promise; getForkContext(options: ForkContextOptions): Promise; }