import { CompositeBackend } from "deepagents"; import type { BackendProtocolV2 } from "deepagents"; export declare function managedContextBackend(contextBackend: BackendProtocolV2, sandboxBackend: unknown | undefined, mountAgentMemory: boolean): CompositeBackend; export declare class MountedPathBackend { private readonly backend; private readonly target; private readonly readOnly; private constructor(); static directory(backend: BackendProtocolV2, repoPrefix: string, visiblePrefix: string, options?: { readOnly?: boolean; }): MountedPathBackend; static file(backend: BackendProtocolV2, repoFile: string, visibleFile: string): MountedPathBackend; ls(path?: string): Promise; read(filePath: string, offset?: number, limit?: number): Promise; readRaw(filePath: string): Promise; grep(pattern: string, path?: string | null, glob?: string | null): Promise; glob(pattern: string, path?: string): Promise; write(filePath: string, content: string): Promise; edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise; uploadFiles(files: Array<[string, Uint8Array]>): Promise; downloadFiles(paths: string[]): Promise; private optional; private toRepoPath; private toRepoGlob; private remapPathCollections; private withVisiblePath; private fromRepoPath; private toVisiblePath; private assertFileRootPath; /** Deploy-owned mounts (instructions, skills) reject writes. */ private assertWritable; } export declare function managedContextRoutes(contextBackend: BackendProtocolV2, mountAgentMemory: boolean): Record; /** * Path-permission rules for non-sandbox (StateBackend) agents. * * When a sandbox backend is present, callers must pass `[]` instead: deepagents * `resolveBackend()` runs CompositeBackend through `adaptSandboxProtocol`, which * drops `routePrefixes`, so `allPathsScopedToRoutes` fails and `execute` is * disabled for any non-empty permissions list. Deploy-owned paths are enforced * via read-only {@link MountedPathBackend} mounts instead. */ export declare function managedContextPermissions(existing: unknown): unknown[]; //# sourceMappingURL=mounts.d.ts.map