index.d.ts 828 B

12345678910111213141516171819202122
  1. /// <reference types="node" />
  2. import * as fs from 'fs';
  3. import { FileSystemAdapter } from './adapters/fs';
  4. import { Options } from './managers/options';
  5. import { AsyncCallback } from './providers/stat';
  6. /**
  7. * Asynchronous API.
  8. */
  9. export declare function stat(path: fs.PathLike, opts?: Options): Promise<fs.Stats>;
  10. /**
  11. * Callback API.
  12. */
  13. export declare function statCallback(path: fs.PathLike, callback: AsyncCallback): void;
  14. export declare function statCallback(path: fs.PathLike, opts: Options, callback: AsyncCallback): void;
  15. /**
  16. * Synchronous API.
  17. */
  18. export declare function statSync(path: fs.PathLike, opts?: Options): fs.Stats;
  19. export declare type Options = Options;
  20. export declare type StatAsyncCallback = AsyncCallback;
  21. export declare type FileSystemAdapter = FileSystemAdapter;
  22. //# sourceMappingURL=index.d.ts.map