UNPKG

781 BTypeScriptView Raw
1/// <reference types="node" />
2import { Settings } from './settings';
3import type { Options } from './settings';
4import type { AsyncCallback } from './providers';
5import type { Readable } from 'node:stream';
6import type { Entry } from './types';
7export declare function walk(directory: string, callback: AsyncCallback): void;
8export declare function walk(directory: string, options: Options | Settings, callback: AsyncCallback): void;
9export declare namespace walk {
10 function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
11}
12export declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[];
13export declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable;