Urara-Blog/node_modules/.pnpm-store/v3/files/f3/4bac0cfeb27873d8b6f6d2ee87a9b72a6a306d534ff33671b34746f36456c27b768dd1f2031c64fd2cd73345bf8da4b2dfe2d385aeb9b8323ce0276c2c6d95
2022-08-14 01:14:53 +08:00

12 lines
855 B
Text

import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
import * as async from './providers/async';
import Settings, { Options } from './settings';
import type { Dirent, Entry } from './types';
declare type AsyncCallback = async.AsyncCallback;
declare function scandir(path: string, callback: AsyncCallback): void;
declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
declare namespace scandir {
function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
}
declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };