import { Command } from 'commander'; import { CommandContext, ChatOptions } from '../types/index.js'; import { AgentSafetyConfig } from '../utils/agent-safety.js'; export declare function createChatCommand(context: CommandContext): Command; export declare function createAgentCommand(context: CommandContext): Command; export interface AgentSelfTestCheck { name: string; ok: boolean; detail?: string; error?: string; } export interface AgentSelfTestResult { success: boolean; root: string; testDir: string; checks: AgentSelfTestCheck[]; } export declare function runAgentSelfTest(options?: { cwd?: string; allowOutsideCwd?: boolean; commandTimeoutMs?: number; maxOutputBytes?: number; }): Promise; export declare function resolveRequestToolsForChat(options: ChatOptions): Promise; export declare function getLocalFsTools(): any[]; type LocalToolResultMessage = { role: 'tool'; content: string; tool_call_id: string; name?: string; }; interface AgentWorkspaceObservation { path: string; tool: string; truncated: boolean; timestamp: number; entryPaths: string[]; } export interface AgentWorkspaceState { root: string; recentPaths: string[]; lastRequestedPath?: string; observations: Record; } export declare function createAgentWorkspaceState(root?: string): AgentWorkspaceState; export declare function executeLocalAgentToolCall(toolCall: any, safetyConfig?: AgentSafetyConfig): Promise; export declare function streamProcessChatWithCallbacks(sessionId: string | undefined, message: string, _options: ChatOptions, context: CommandContext, cb: { onText: (chunk: string) => void; onToolEvent: (text: string) => void; onChatId?: (id: string) => void; }): Promise; export {};