import type { InstanceAiAgentPreviewHandoffContext } from '@n8n/api-types'; import type { User } from '@n8n/db'; import type { AgentSessionDetail } from '../../modules/agents/agent-context.contracts'; export type AgentTestHandoffResult = { block: string; titleFallback: string; target: { agentId: string; projectId: string; }; }; export declare function resolveAgentTestHandoff(context: InstanceAiAgentPreviewHandoffContext, options: { projectId: string; userId: string; getThreadDetail: (threadId: string, projectId: string, agentId: string, userId: string) => Promise; }): Promise; export declare function canAccessAgentTestHandoff(user: User, projectId: string): Promise; export declare function assertAgentTestHandoffScopes(user: User, projectId: string): Promise;