import { type Workspace } from '@n8n/agents'; import { Logger } from '@n8n/backend-common'; import { AgentsConfig } from '@n8n/config'; import { PostHogClient } from '../../posthog'; import { AgentChatAttachmentService } from './agent-chat-attachment.service'; import type { AgentChatAttachment } from './entities/agent-chat-attachment.entity'; import type { TimelineEvent } from './execution-recorder'; export declare const SANDBOX_OUTPUTS_DIR = "outputs"; export declare const SANDBOX_INPUTS_DIR = "inputs"; export interface SandboxOutputFile { path: string; hash: string; } export declare const SANDBOX_FILE_REF_PREFIX = "sandbox:"; export declare const SANDBOX_FILES_INSTRUCTIONS: string; export interface ActiveRun { agentId: string | null; getWorkspace: () => Workspace | undefined; } export interface SandboxFileScope { agentId: string | null; projectId: string; threadId: string; } export declare function resolveSandboxFileRefs(refs: string[], scope: { projectId: string; threadId: string; }): Promise; export declare function usedWorkspace(timeline: TimelineEvent[]): boolean; export declare function normalizeOutputPath(path: string): string | undefined; export declare class AgentSandboxFilesService { private readonly logger; private readonly attachmentService; private readonly agentsConfig; private readonly postHogClient; private readonly activeRuns; constructor(logger: Logger, attachmentService: AgentChatAttachmentService, agentsConfig: AgentsConfig, postHogClient: PostHogClient); isEnabled(): Promise; importFiles(workspace: Workspace, files: Record, scope: { projectId: string; threadId: string; }): Promise>; trackRun(threadId: string, run: ActiveRun): void; untrackRun(threadId: string, run: ActiveRun): void; resolveFileRefs(refs: string[], scope: { projectId: string; threadId: string; }): Promise; private resolveFileRef; syncOutputs(workspace: Workspace, scope: SandboxFileScope): Promise; list(workspace: Workspace, abortSignal?: AbortSignal): Promise; private hashInN8n; store(workspace: Workspace, path: string, scope: SandboxFileScope, abortSignal?: AbortSignal): Promise; }