import { Buffer } from "node:buffer"; import { Readable } from "node:stream"; import { LocalInputSource } from "./localInputSource.js"; interface StreamInputProps { inputStream: Readable; filename: string; } /** * Local input source backed by a readable stream. */ export declare class StreamInput extends LocalInputSource { private readonly inputStream; /** * Buffered payload created from the stream. */ fileObject: Buffer; constructor({ inputStream, filename }: StreamInputProps); /** * Reads the stream to completion and validates MIME type. */ init(): Promise; /** * Converts a readable stream into a single buffer. */ stream2buffer(stream: Readable, signal?: AbortSignal): Promise; } export {};