UNPKG

@aws-amplify/storage

Version:

Storage category of aws-amplify

9 lines (8 loc) 459 B
import { FoundationContext } from '../types'; /** * Calculate the MD5 checksum of the given content as a base64 string. * 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 calculateContentMd5: (ctx: FoundationContext, content: Blob | string | ArrayBuffer | ArrayBufferView) => Promise<string>;