/// /// import { EventEmitter } from "events"; import { Readable } from 'stream'; import { JobOptInputs } from '../shared/types/common/jobopt_model'; export declare class JobInputs extends EventEmitter { streams: Record; paths: Record; hashes: Record; hashable: boolean; onError: boolean; /** * Build the Map of file basename and stream * @param data - Array of filepath, or file symbol keys and values as filepath or Readable * Or an array mixing the three types * Following input spec is valide: * [ "/path/to/file.txt", * {"a.txt": "/path/to/u.log", "g.txt": }, * "/data/log.txt", * {"n.txt": "/path/to/j.zip"} * ] * @returns inputMap - A litteral where keys are symbol used to define target files and values are Readable */ constructor(data?: JobOptInputs | JobOptInputs[]); getStreamsMap(): Record | undefined; hash(): Record | undefined; write(location: string): JobInputs; }