import type { BuiltTool } from '@n8n/agents'; import { type SubAgentSource } from '@n8n/api-types'; import type { AgentBackgroundJobService } from './agent-background-job.service'; import type { SubAgentBackgroundRunner } from './sub-agent-background-runner'; import type { SubAgentRunContext } from '../sub-agents/sub-agent-runner'; export interface BackgroundJobToolsOptions { jobService: AgentBackgroundJobService; backgroundRunner: SubAgentBackgroundRunner; sourcesById: Record; availableSubAgents: Array<{ id: string; name: string; useWhen?: string; }>; projectId: string; parentAgentId: string; runContext: Pick; } export declare function createSpawnBackgroundSubAgentTool(options: BackgroundJobToolsOptions): BuiltTool; export declare function createCheckBackgroundJobsTool(jobService: AgentBackgroundJobService): BuiltTool; export declare function createCancelBackgroundJobTool(jobService: AgentBackgroundJobService): BuiltTool;