import { Readable } from 'stream'; import { IOBase, IOBaseConstructorParams } from './base'; import { walkPromise } from './utils'; type Files = { [filename: string]: { size: number; }; }; type DirectoryConstructorParams = IOBaseConstructorParams; export declare class Directory extends IOBase { files: Files; constructor({ filePath, stderr }: DirectoryConstructorParams); getFiles(_walkPromise?: typeof walkPromise): Promise; getPath(_path: string): Promise; getFileAsStream(_path: string, { encoding }?: { encoding: BufferEncoding; }): Promise; getFileAsString(_path: string): Promise; getChunkAsBuffer(_path: string, chunkLength: number): Promise; } export {};