import type { McpConversationSetup } from '../../agent/mcp/conversation-setup.js'; import { AgentService } from '../../agent/service.js'; import type { AutomationService } from '../../automations/index.js'; import type { ManagedBrowserLiveRuntime } from '../../browser/managed-live-runtime.js'; import type { BrowserRuntime } from '../../browser/runtime/browser-runtime.js'; import type { EmbeddedBrowserGrantRegistry } from '../../browser/embedded/grant-registry.js'; import type { BrowserSetupService } from '../../browser/setup/service.js'; import type { ChannelManager } from '../../channels/manager.js'; import type { ChatPreviewService } from '../../chat-previews/index.js'; import { type Config } from '../../config/schema.js'; import type { DiscussionService } from '../../discussions/index.js'; import type { EndpointToolRuntime } from '../../endpoint-tools/index.js'; import type { ExtensionLoader } from '../../extensions/index.js'; import type { MessageBus } from '../../infra/bus/index.js'; import type { LocalAppService } from '../../local-apps/index.js'; import { type NotesService } from '../../notes/index.js'; import type { MatterInvestigatorService, ProactiveHubService } from '../../proactive-hub/index.js'; import type { ProjectService } from '../../projects/index.js'; import type { BrowserPreviewRuntime } from '../../realtime/browser-preview.js'; import type { RealtimeRuntime } from '../../realtime/runtime.js'; import type { SelfConfigService, UnifiedSetupSceneService } from '../../self-config/index.js'; import type { SessionIndex } from '../../session/index.js'; import type { TaskRetryInput } from '../../tasks/task-retry-service.js'; import type { WorkDiscoveryService } from '../../work-discovery/service.js'; import type { GatewayAgentRunner } from './agent-runner.js'; export interface GatewayAgentServiceFactoryDeps { bus: MessageBus; workspacePath: string; getConfig: () => Config; sessionIndex: SessionIndex; channelManager: ChannelManager; getExtensionLoader: () => ExtensionLoader | null; endpointTools: EndpointToolRuntime; realtime: RealtimeRuntime; browserPreviews: BrowserPreviewRuntime; managedBrowserLive: ManagedBrowserLiveRuntime; managedBrowserRuntimes: Map; embeddedBrowserGrants?: EmbeddedBrowserGrantRegistry; automationService: AutomationService; calendarService?: import('../../calendar/index.js').CalendarService; chatSchedules?: import('../../chat-schedules/index.js').ChatScheduleService; notesService: NotesService; projects: ProjectService; discussions: DiscussionService; localApps: LocalAppService; chatPreviews: ChatPreviewService; agentRunner: GatewayAgentRunner; getWorkDiscovery: () => WorkDiscoveryService | undefined; getProactiveHub: () => ProactiveHubService; getMatterInvestigator: () => MatterInvestigatorService; getBrowserSetup: () => BrowserSetupService; getMcpSetup: () => McpConversationSetup; getSelfConfig: () => SelfConfigService; getSetupScenes: () => UnifiedSetupSceneService; getRunningChannelIds: () => string[]; dispatchTaskEvents: () => void; dispatchTaskRuns: () => void; retryTask: (input: TaskRetryInput) => ReturnType; refreshAgentCatalog: () => void; emit: (type: string, payload: unknown) => void; } export declare function createGatewayAgentService(deps: GatewayAgentServiceFactoryDeps): AgentService;