UNPKG

567 BTypeScriptView Raw
1import { Settings } from './settings';
2import type { Options } from './settings';
3import type { AsyncCallback, Entry } from './types';
4export declare function scandir(path: string, callback: AsyncCallback): void;
5export declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
6export declare namespace scandir {
7 function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
8}
9export declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];