import { Tool, ConsoleLogger, MCPServerRegistry, AgentEventStream } from '@tarko/mcp-agent'; import { AgentTARSOptions, BuiltInMCPServers } from '../../types'; /** * Base environment class for AgentTARS * Provides common interface and default implementations for environment operations */ export declare abstract class AgentTARSBaseEnvironment { protected logger: ConsoleLogger; protected options: AgentTARSOptions; protected workspace: string; constructor(options: AgentTARSOptions, workspace: string, logger: ConsoleLogger); /** * Initialize the environment and all its components */ abstract initialize(registerToolFn: (tool: Tool) => void, eventStream?: AgentEventStream.Processor): Promise; /** * Handle agent loop start operations */ abstract onEachAgentLoopStart(sessionId: string, eventStream: AgentEventStream.Processor, isReplaySnapshot: boolean): Promise; /** * Handle tool call preprocessing */ onBeforeToolCall(id: string, toolCall: { toolCallId: string; name: string; }, args: any, isReplaySnapshot?: boolean): Promise; /** * Handle post-tool call processing */ onAfterToolCall(id: string, toolCall: { toolCallId: string; name: string; }, result: any, browserState: any): Promise; /** * Handle session disposal */ onDispose(): Promise; /** * Get browser control information */ getBrowserControlInfo(): { mode: string; tools: string[]; }; /** * Get the browser manager instance */ getBrowserManager(): any; /** * Get MCP servers for cleanup */ getMCPServers(): BuiltInMCPServers; /** * Get MCP server registry configuration */ abstract getMCPServerRegistry(): MCPServerRegistry; } //# sourceMappingURL=index.d.ts.map