import { Readable } from 'stream'; import { Stderr } from '../stdio'; type ScanFileFunction = (_path: string, isDirectory: boolean) => boolean; type Files = Record; export type IOBaseConstructorParams = { filePath: string; stderr: Stderr; }; export declare class IOBase { path: string; stderr: Stderr; files: Files; entries: string[]; maxSizeBytes: number; shouldScanFile: ScanFileFunction; constructor({ filePath, stderr }: IOBaseConstructorParams); setScanFileCallback(callback: ScanFileFunction): void; getFile(path: string, fileStreamType?: 'stream' | 'string' | 'chunk'): Promise | Promise | Promise>; getFilesByExt(...extensions: string[]): Promise; getFiles(optionalArgument?: Function): Promise; getFileAsStream(path: string): Promise; getFileAsString(path: string): Promise; getChunkAsBuffer(path: string, chunkLength: number): Promise; close(): void; } export {};