Stats.d.ts 900 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Node } from './node';
  2. export declare type TStatNumber = number | bigint;
  3. /**
  4. * Statistics about a file/directory, like `fs.Stats`.
  5. */
  6. export declare class Stats<T = TStatNumber> {
  7. static build(node: Node, bigint: false): Stats<number>;
  8. static build(node: Node, bigint: true): Stats<bigint>;
  9. static build(node: Node, bigint?: boolean): Stats<TStatNumber>;
  10. uid: T;
  11. gid: T;
  12. rdev: T;
  13. blksize: T;
  14. ino: T;
  15. size: T;
  16. blocks: T;
  17. atime: Date;
  18. mtime: Date;
  19. ctime: Date;
  20. birthtime: Date;
  21. atimeMs: T;
  22. mtimeMs: T;
  23. ctimeMs: T;
  24. birthtimeMs: T;
  25. dev: T;
  26. mode: T;
  27. nlink: T;
  28. private _checkModeProperty;
  29. isDirectory(): boolean;
  30. isFile(): boolean;
  31. isBlockDevice(): boolean;
  32. isCharacterDevice(): boolean;
  33. isSymbolicLink(): boolean;
  34. isFIFO(): boolean;
  35. isSocket(): boolean;
  36. }
  37. export default Stats;