@aws-amplify/storage
Version:
Storage category of aws-amplify
9 lines (8 loc) • 491 B
TypeScript
import { FoundationContext } from '../types';
/**
* Calculate the CRC32 checksum for given content and return base64 encoded
* checksum. Environment-specific dependencies (`readFile`, `toBase64`) are
* injected via the {@link FoundationContext} so the foundation layer stays
* free of any environment-discriminating logic.
*/
export declare const calculateContentCRC32: (ctx: FoundationContext, content: Blob | string | ArrayBuffer | ArrayBufferView, seed?: number) => Promise<string>;