import type { FileSystem } from "@servicenow/sdk-build-core"; import type { IsomorphicRollupFs, Stats } from "../fs-iface"; import type { Dirent, Stats as fstats } from "fs"; /** * Filesystem wrapper around the filesystem passed in by fluent */ export declare class RollupFsAdapter implements IsomorphicRollupFs { private readonly fs; promises: { lstat: (path: string) => Promise; readdir: (path: string, options: { withFileTypes: true; }) => Promise; readlink: (path: string) => Promise; realpath: (path: string) => Promise; }; constructor(fs: FileSystem); realpath: (path: string) => Promise; realpathSync(path: string): string; access(p: string): Promise; readFile(path: string, encoding?: "utf8"): Promise; stat(path: string): Promise; lstat: (path: string, cb: (er: NodeJS.ErrnoException | null, stats?: fstats) => void) => void; readdir: (path: string, options: { withFileTypes: true; }, cb: (er: NodeJS.ErrnoException | null, entries?: Dirent[]) => void) => void; lstatPromise: (path: string) => Promise; readdirPromise: (path: string, options: { withFileTypes: true; }) => Promise; readlinkPromise: (path: string) => Promise; mkdir(path: string, options?: { recursive?: boolean; }): Promise; writeFile(path: string, data: string | Uint8Array, encoding?: "utf8"): Promise; }