import { type AgentToolOutputFile, type AgentToolSkippedFile } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import { BinaryDataService } from 'n8n-core'; import type { IBinaryKeyData, IDataObject, INodeExecutionData } from 'n8n-workflow'; import { z } from 'zod'; import { AgentChatAttachmentService } from './agent-chat-attachment.service'; import { AgentSandboxFilesService } from './agent-sandbox-files.service'; export declare const FILES_INPUT_SCHEMA: z.ZodOptional>; export interface AgentFileScope { resourceId: string; agentId: string | null; projectId: string; threadId: string; } export interface AdoptedItem { json: IDataObject; binary?: IDataObject; } export declare class AgentFileBridge { private readonly logger; private readonly binaryDataService; private readonly attachmentService; private readonly sandboxFiles; constructor(logger: Logger, binaryDataService: BinaryDataService, attachmentService: AgentChatAttachmentService, sandboxFiles: AgentSandboxFilesService); toBinary(input: unknown, scope: { projectId: string; threadId?: string; }): Promise<{ binary: IBinaryKeyData; stored: Map; } | undefined>; adoptFromItems(items: INodeExecutionData[], scope: AgentFileScope, stored?: Map, skipped?: Set): Promise<{ items: AdoptedItem[]; files: AgentToolOutputFile[]; skippedFiles: AgentToolSkippedFile[]; }>; deleteFiles(fileIds: string[]): Promise; private isTooLarge; private store; }