/// import { LogType } from '../log'; import { Readable } from 'stream'; import { FileConfig } from './file.config'; export interface FileProcessor { read(filePath: string): Promise; readJson(filePath: string): Promise; readStream(filePath: string): Readable; write(filePath: string, buffer: Buffer | Readable, logger?: LogType): Promise; writeJson(filePath: string, obj: any, logger?: LogType): Promise; list(filePath: string): Promise; exists(filePath: string): Promise; } /** Simple wrapper to allow both s3:// and local files to be read and listed */ export declare const FileOperator: { /** path.join removes slashes, s3:// => s3:/ which causes issues */ join(filePathA: string, filePathB: string): string; isS3(filePath?: string | undefined): boolean; create(cfg: string | FileConfig): FileProcessor; }; //# sourceMappingURL=file.d.ts.map