4bac0cfeb27873d8b6f6d2ee87a9b72a6a306d534ff33671b34746f36456c27b768dd1f2031c64fd2cd73345bf8da4b2dfe2d385aeb9b8323ce0276c2c6d95 855 B

123456789101112
  1. import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
  2. import * as async from './providers/async';
  3. import Settings, { Options } from './settings';
  4. import type { Dirent, Entry } from './types';
  5. declare type AsyncCallback = async.AsyncCallback;
  6. declare function scandir(path: string, callback: AsyncCallback): void;
  7. declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
  8. declare namespace scandir {
  9. function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
  10. }
  11. declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
  12. export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };