UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

23 lines (22 loc) 790 B
import { ChecksumConstructor } from "./checksum"; import { HashConstructor, StreamHasher } from "./crypto"; import { BodyLengthCalculator, Encoder } from "./util"; /** * @public */ export interface GetAwsChunkedEncodingStreamOptions { base64Encoder?: Encoder; bodyLengthChecker: BodyLengthCalculator; checksumAlgorithmFn?: ChecksumConstructor | HashConstructor; checksumLocationName?: string; streamHasher?: StreamHasher; } /** * @public * * A function that returns Readable Stream which follows aws-chunked encoding stream. * It optionally adds checksum if options are provided. */ export interface GetAwsChunkedEncodingStream<StreamType = any> { (readableStream: StreamType, options: GetAwsChunkedEncodingStreamOptions): StreamType; }