mindee
Version:
Mindee Client Library for Node.js
15 lines (14 loc) • 444 B
TypeScript
import { Readable } from "stream";
import { LocalInputSource } from "./localInputSource";
interface StreamInputProps {
inputStream: Readable;
filename: string;
}
export declare class StreamInput extends LocalInputSource {
private readonly inputStream;
fileObject: Buffer;
constructor({ inputStream, filename }: StreamInputProps);
init(): Promise<void>;
stream2buffer(stream: Readable): Promise<Buffer>;
}
export {};