import { Workspace } from '@struktoai/mirage-node'; import { SandboxBackendProtocolV2, ExecuteResponse, LsResult, ReadResult, ReadRawResult, WriteResult, EditResult, GrepResult, GlobResult, FileUploadResponse, FileDownloadResponse } from 'deepagents'; export { B as BuildSystemPromptOptions, M as MIRAGE_SYSTEM_PROMPT, b as buildSystemPrompt } from '../prompt-CgKmMkVe.js'; import '@struktoai/mirage-core/workspace/workspace/workspace'; interface LangchainWorkspaceOptions { sandboxId?: string; } declare class LangchainWorkspace implements SandboxBackendProtocolV2 { readonly id: string; private readonly ws; constructor(workspace: Workspace, options?: LangchainWorkspaceOptions); execute(command: string): Promise; ls(path: string): Promise; read(filePath: string, offset?: number, limit?: number): Promise; readRaw(filePath: string): Promise; write(filePath: string, content: string): Promise; edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise; grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise; glob(pattern: string, path?: string): Promise; uploadFiles(files: readonly (readonly [string, Uint8Array])[]): Promise; downloadFiles(paths: readonly string[]): Promise; } interface MessageLike { content?: unknown; } declare function extractText(messages: readonly MessageLike[]): string[]; export { LangchainWorkspace, type LangchainWorkspaceOptions, extractText };