index.d.ts 854 B

123456789101112131415161718192021
  1. import Stats from './Stats';
  2. import Dirent from './Dirent';
  3. import { Volume as _Volume, StatWatcher, FSWatcher, IReadStream, IWriteStream, DirectoryJSON } from './volume';
  4. import { IPromisesAPI } from './promises';
  5. import { constants } from './constants';
  6. export { DirectoryJSON };
  7. export declare const Volume: typeof _Volume;
  8. export declare const vol: _Volume;
  9. export interface IFs extends _Volume {
  10. constants: typeof constants;
  11. Stats: new (...args: any[]) => Stats;
  12. Dirent: new (...args: any[]) => Dirent;
  13. StatWatcher: new () => StatWatcher;
  14. FSWatcher: new () => FSWatcher;
  15. ReadStream: new (...args: any[]) => IReadStream;
  16. WriteStream: new (...args: any[]) => IWriteStream;
  17. promises: IPromisesAPI;
  18. _toUnixTimestamp: any;
  19. }
  20. export declare function createFsFromVolume(vol: _Volume): IFs;
  21. export declare const fs: IFs;