import type { AgentService } from '../../agent/service.js'; import type { AutomationAction } from '../../automations/domain/types.js'; import { type AutomationEvent, type AutomationService } from '../../automations/index.js'; import type { ChannelManager } from '../../channels/manager.js'; import type { Config } from '../../config/schema.js'; import { type ConnectorLearningCoordinator } from '../../connectors/learning-coordinator.js'; import { HomeIntelligenceHost } from '../../home-intelligence/host.js'; import type { NotificationService } from '../../notifications/service.js'; import { ProactivityService } from '../../proactive-hub/proactivity/service.js'; import { LocalEnvironmentSignalProducer, MatterInvestigatorService, ProactiveHubService, WebWatchSignalProducer } from '../../proactive-hub/index.js'; import type { ProjectService } from '../../projects/index.js'; import type { RealtimeRuntime } from '../../realtime/runtime.js'; import type { SessionIndex } from '../../session/index.js'; import type { VoiceRealtimeRuntime } from '../../voice/realtime/runtime.js'; import type { WorkDiscoveryService } from '../../work-discovery/service.js'; import type { GatewayStartupTrace } from '../startup-trace.js'; import type { GatewayAgentRunner } from './agent-runner.js'; export interface GatewayProactiveAutomationDeps { getConfig: () => Config; saveConfig: (cfg: Config) => Promise<{ saved: boolean; error?: string; }>; getWorkspacePath: () => string; isStopping: () => boolean; agentRunner: GatewayAgentRunner; voiceRealtime: VoiceRealtimeRuntime; realtime: RealtimeRuntime; sessionIndex: SessionIndex; projects: ProjectService; channelManager: ChannelManager; automationService: AutomationService; getAgentService: () => AgentService; getWorkDiscovery: () => WorkDiscoveryService | undefined; getNotificationService: () => NotificationService; dispatchTaskRuns: () => void; emit: (type: string, payload: unknown) => void; } export declare class GatewayProactiveAutomationCoordinator { private readonly deps; readonly personalProactivity: ProactivityService; readonly proactiveHub: ProactiveHubService; readonly localSignalProducer: LocalEnvironmentSignalProducer; readonly webWatchProducer: WebWatchSignalProducer; readonly matterInvestigator: MatterInvestigatorService; private homeIntelligenceHost; private connectorSupervisor; private connectorLearningCoordinator; private managedComposioEventPoller?; private connectedKnowledgeCoordinator; private stopSessionTranscriptAutomationEvents; constructor(deps: GatewayProactiveAutomationDeps); get homeIntelligence(): HomeIntelligenceHost; get optionalHomeIntelligence(): HomeIntelligenceHost | null; initializeHomeIntelligenceHost(): HomeIntelligenceHost; startHomeIntelligenceHost(): void; stopHomeIntelligenceHost(): void; wireAutomationDeps(agentService: AgentService, includeEventProjection: boolean): void; initializeAutomationsAndProactivity(trace: GatewayStartupTrace): Promise; startConnectors(): void; stopConnectors(): void; stopAutomationsAndProactivity(): Promise; requestConnectorLearning(connectionId: string, request?: Parameters[1]): ReturnType; requestConnectorLearningForToolkit(toolkit: string): ReturnType; setConnectorLearningPaused(connectionId: string, paused: boolean): number; reconcileMemoryMaintenanceAutomations(): Promise; executeSystemAutomationAction(input: { capability: Extract['capability']; runId: string; }): { summary: string; }; ingestAutomationEvent(event: AutomationEvent, options?: { targetAutomationIds?: string[]; }): import("../../automations/index.js").AutomationEventIngestResult; private deliverTierSWeixinAlert; private deliverWeixinAutomation; private handleAutomationRunCompleted; private startSessionTranscriptEventIngestion; private projectAutomationEvent; }