@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
29 lines (28 loc) • 859 B
TypeScript
/// <reference types="node" />
import { MimeType } from "../MimeType";
/**
* This class encapsulates read stream and the media type of {@link Asset}.
*/
export declare class StreamAsset {
private readonly _readStream;
private readonly _mimeType;
/**
* Construct an instance of `StreamAsset`.
*
* @param readStream - read stream of the asset. Cannot be undefined.
* @param mimeType - mime type of the read stream. Cannot be undefined.
*/
constructor(readStream: NodeJS.ReadableStream, mimeType: MimeType | string);
/**
* Returns the read stream of the asset.
*
* @returns Read Stream of the asset.
*/
get readStream(): NodeJS.ReadableStream;
/**
* Returns the mime type of the asset.
*
* @returns Mime Type of the asset.
*/
get mimeType(): MimeType | string;
}