import { Bash, InMemoryFs } from "just-bash/browser"; import type { CustomCommandsResult } from "./vfs/custom-commands"; export interface StorageNamespace { dbName: string; dbVersion: number; localStoragePrefix: string; documentSettingsPrefix: string; documentIdSettingsKey?: string; } export interface AgentContextOptions { namespace?: Partial; staticFiles?: Record; skillFiles?: Record; customCommands?: (ns: StorageNamespace) => CustomCommandsResult; } export declare class AgentContext { readonly namespace: StorageNamespace; private _fs; private _bash; private _staticFiles; private _skillFiles; private _customCommandsFactory; constructor(opts?: AgentContextOptions); get vfs(): InMemoryFs; get bash(): Bash; setStaticFiles(files: Record): Promise; setSkillFiles(files: Record): Promise; get commandSnippets(): string[]; setCustomCommands(factory: (ns: StorageNamespace) => CustomCommandsResult): void; reset(): void; private patchVfsFiles; restoreVfs(files: { path: string; data: Uint8Array; }[]): Promise; snapshotVfs(): Promise<{ path: string; data: Uint8Array; }[]>; writeFile(path: string, content: string | Uint8Array): Promise; readFile(path: string): Promise; readFileBuffer(path: string): Promise; fileExists(path: string): Promise; deleteFile(path: string): Promise; listUploads(): Promise; } //# sourceMappingURL=context.d.ts.map