Rocky_Mountain_Vending/.pnpm-store/v10/files/47/07a6d1383ab2ab08b4d5d87e1c646d4a17cf40731458802913a24a692452e5f4cd65c1c3f8d62d5f8ed0ce504d4882ddd4f084da4523bb59e01ea6c6ca8998
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

60 lines
1.6 KiB
Text

import type { Checksum, Encoder } from "@smithy/types";
import type { Readable } from "stream";
import { Duplex } from "stream";
/**
* @internal
*/
export interface ChecksumStreamInit<T extends Readable | ReadableStream> {
/**
* Base64 value of the expected checksum.
*/
expectedChecksum: string;
/**
* For error messaging, the location from which the checksum value was read.
*/
checksumSourceLocation: string;
/**
* The checksum calculator.
*/
checksum: Checksum;
/**
* The stream to be checked.
*/
source: T;
/**
* Optional base 64 encoder if calling from a request context.
*/
base64Encoder?: Encoder;
}
/**
* @internal
*
* Wrapper for throwing checksum errors for streams without
* buffering the stream.
*
*/
export declare class ChecksumStream extends Duplex {
private expectedChecksum;
private checksumSourceLocation;
private checksum;
private source?;
private base64Encoder;
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit<Readable>);
/**
* @internal do not call this directly.
*/
_read(size: number): void;
/**
* @internal do not call this directly.
*
* When the upstream source flows data to this stream,
* calculate a step update of the checksum.
*/
_write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
/**
* @internal do not call this directly.
*
* When the upstream source finishes, perform the checksum comparison.
*/
_final(callback: (err?: Error) => void): Promise<void>;
}