import type { DaemonState, ThreadRecord } from './types.js'; import type { McpClientManager } from '../mcp/client.js'; type NativeRuntimeOptions = { model?: string; waitForTokenTimeoutMs?: number; timeoutMs?: number; maxRuntimeMs?: number; effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'; permissionMode?: 'default' | 'workspace-write' | 'full-access' | 'custom' | 'read-only'; networkAccess?: boolean; trustedDataHosts?: string[]; resume?: boolean; systemPromptAppend?: string; }; export interface DaemonEvents { onStateChange?: (state: DaemonState) => void | Promise; onReply?: (text: string) => void | Promise; onError?: (text: string, error: Error) => void | Promise; onFile?: (filePath: string, caption?: string) => void | Promise; mcpManager?: McpClientManager; threadRecord?: ThreadRecord; persistThreadState?: boolean; } export declare class AgentCortex { private state; private controller; private activeDriverSession; private events; private lastInputTokens; private lastOutputTokens; private loopGuard; private threadManager; private memorySubsystem; private threadRecord; private persistThreadState; constructor(agentId: string, threadId: string, events?: DaemonEvents); private setPersistentThreadStatus; getState(): DaemonState; private resolveBackendDriverId; /** * Build mcpServers config for the SDK from the MCP manager. * Converts internal McpServerConfig format to SDK's expected format. */ private buildMcpServersConfig; private createNativeSdkSession; private ensureNativeSdkSession; prewarmNativeThread(options?: NativeRuntimeOptions): Promise; run(taskId: string, prompt: string, options?: NativeRuntimeOptions & { systemPromptAppend?: string; }): Promise; interrupt(): void; runNativeStream(taskId: string, messages: any[], options?: NativeRuntimeOptions): Promise; private initBrain; private preparePrompt; private consolidateMemory; private notifyState; private escalateToCoreMemory; } export {}; //# sourceMappingURL=cortex.d.ts.map