import * as fs from "fs"; /** * This is a simple in-memory RPC implementation for file operations. * It expects to have ZenFS be used as the browser-based fallback in webpack for * `fs`. * * It allows errors to propagate to the caller; the RPC infrastructure should * forward these on. */ export declare const rpc: { fs: { readFile: (path: string) => Promise; writeFile: (path: string, data: string | Buffer) => Promise; exists: (path: string) => Promise; stat: (p: string) => Promise<{ mtime: number; ctime: number; size: number; native: fs.Stats; }>; createDir: (p: string) => Promise; }; path: { join: (...paths: string[]) => string; resolve: (p: string) => string; basename: (p: string) => string; dirname: (p: string) => string; extname: (p: string) => string; relative: (from: string, to: string) => string; "is-absolute": (p: string) => boolean; }; }; //# sourceMappingURL=default-rpcs.d.ts.map