StatFs.d.ts 606 B

12345678910111213141516171819
  1. import { Superblock } from '../core';
  2. import type { IStatFs } from './types/misc';
  3. export type TStatNumber = number | bigint;
  4. /**
  5. * Statistics about a file system, like `fs.StatFs`.
  6. */
  7. export declare class StatFs<T = TStatNumber> implements IStatFs<T> {
  8. static build(superblock: Superblock, bigint: false): StatFs<number>;
  9. static build(superblock: Superblock, bigint: true): StatFs<bigint>;
  10. static build(superblock: Superblock, bigint?: boolean): StatFs<TStatNumber>;
  11. type: T;
  12. bsize: T;
  13. blocks: T;
  14. bfree: T;
  15. bavail: T;
  16. files: T;
  17. ffree: T;
  18. }
  19. export default StatFs;