import { NodeFS } from './NodeFS'; import { PortablePath } from './path'; export type XFS = NodeFS & { detachTemp(p: PortablePath): void; mktempSync(): PortablePath; mktempSync(cb: (p: PortablePath) => T): T; mktempPromise(): Promise; mktempPromise(cb: (p: PortablePath) => Promise): Promise; /** * Tries to remove all temp folders created by mktempSync and mktempPromise */ rmtempPromise(): Promise; /** * Tries to remove all temp folders created by mktempSync and mktempPromise */ rmtempSync(): void; }; export declare const xfs: XFS;