UNPKG

@grasplabs/grasp

Version:

TypeScript SDK for browser automation and secure command execution in highly available and scalable cloud browser environments

25 lines 1.09 kB
import { ICDPConnection } from './browser.service'; import { SandboxService } from './sandbox.service'; export declare class FileSystemService { private sandbox; private connection; private logger; /** * Gets or creates a default logger instance * @returns Logger instance */ private getDefaultLogger; constructor(sandbox: SandboxService, connection: ICDPConnection); uploadFile(localPath: string, remotePath: string): Promise<void>; downloadFile(remotePath: string, localPath: string): Promise<void>; writeFile(remotePath: string, content: string | ArrayBuffer): Promise<import("e2b").EntryInfo>; readFile(remotePath: string, options?: { encoding?: 'utf8' | 'base64' | 'binary'; }): Promise<string | Buffer<ArrayBufferLike>>; /** * @experimental This method is experimental and may change or be removed in future versions. * Use with caution in production environments. */ syncDownloadsDirectory(localPath: string, remotePath?: string): Promise<string>; } //# sourceMappingURL=filesystem.service.d.ts.map