import type { NodeishFilesystem } from "../interface.js"; /** * Serializes the filesystem to a JSON object that can be sent over the network. * File data is base64 encoded. * * Use `resolveFrom` to define the directory to resolve from. * * Use `matchers` to define which files to include. Uses * https://github.com/axtgr/outmatch#syntax for matching. * * @example * // match everything but node_modules * const result = await toJson(fs, { * matchers: [ * "**\/*" * "!node_modules" * ], * resolveFrom: "/" * }) * * >> { "file1.txt": "29udGVudDE=", "file2.txt": "Y29udGVudDM="" } * */ export declare function toJson(args: { fs: NodeishFilesystem; matchers: string[]; resolveFrom: string; }): Promise>; //# sourceMappingURL=toJson.d.ts.map