import type { AgentFileDto } from '@n8n/api-types'; import { BinaryDataService } from 'n8n-core'; import { AgentFileRepository } from './repositories/agent-file.repository'; import { AgentRepository } from './repositories/agent.repository'; export interface KnowledgeWorkspaceFile { id: string; fileName: string; mimeType: string; fileSizeBytes: number; relativePath: string; } interface MaterializeWorkspaceOptions { fileReferences?: string[]; } export declare class AgentKnowledgeService { private readonly agentRepository; private readonly agentFileRepository; private readonly binaryDataService; constructor(agentRepository: AgentRepository, agentFileRepository: AgentFileRepository, binaryDataService: BinaryDataService); uploadFiles(agentId: string, projectId: string, files: Express.Multer.File[]): Promise; listFiles(agentId: string, projectId: string): Promise; listWorkspaceFiles(agentId: string, projectId: string): Promise; deleteFile(agentId: string, projectId: string, fileId: string): Promise; deleteAllFilesForAgent(agentId: string): Promise; resolveWorkspaceFiles(agentId: string, projectId: string, fileReferences?: string[]): Promise; materializeWorkspace(agentId: string, projectId: string, workspaceRoot: string, options?: MaterializeWorkspaceOptions): Promise; private ensureAgentBelongsToProject; private storeFile; private toDto; private toWorkspaceFile; private assertWorkspaceWithinLimits; private filterFilesForWorkspace; private getWorkspaceRelativePath; private prepareStoredContent; private isPdf; private extractPdfText; private validateMetadataLength; private cleanupStoredFiles; private cleanupUploadTempFiles; private cleanupUploadTempFile; } export {};