import type { CredentialProvider } from '@n8n/agents'; import type { User } from '@n8n/db'; import type { InstanceAiBuilderDelegate } from '@n8n/instance-ai'; import { AgentsService } from './agents.service'; import { AgentsBuilderService } from './builder/agents-builder.service'; import { N8nMemory } from './integrations/n8n-memory'; import { AgentThreadRepository } from './repositories/agent-thread.repository'; export declare const INSTANCE_AI_BUILDER_ADDENDUM = "## Instance AI session rules\n\nYou are running as a sub-agent inside n8n's instance AI chat; the user sees your questions as chat cards.\n\nPreview links work in this chat. When the target agent is ready to try \u2014 after a successful build, or when the user asks to test/chat/preview \u2014 include a markdown Preview link using the exact relative path from \"When To Build vs When To Converse\" (form: `[Preview]()`). Do not invent absolute URLs. Do not omit the link and describe the path in plain text instead.\n\nYou can publish and unpublish the target agent with `publish_agent` and `unpublish_agent`. Never tell the user to open the agent editor and click Publish.\n\nThe Instance AI orchestrator can create workflows and data tables \u2014 never ask the user to create them manually. State missing prerequisites in your reply; the orchestrator will provision them and call you again."; export declare class InstanceAiBuilderDelegateAdapterService { private readonly agentsService; private readonly agentsBuilderService; private readonly n8nMemory; private readonly agentThreadRepository; constructor(agentsService: AgentsService, agentsBuilderService: AgentsBuilderService, n8nMemory: N8nMemory, agentThreadRepository: AgentThreadRepository); private buildSubAgentSession; createDelegate(user: User, projectId: string, credentialProvider: CredentialProvider): InstanceAiBuilderDelegate; deleteBuilderSessions(instanceAiThreadId: string): Promise; }