UNPKG

@keypo/typescript-sdk

Version:

A TypeScript SDK for using Keypo

7 lines (6 loc) 572 B
import { DataMetadata, TypedArray, BrowserFile, BrowserBlob } from './utils/types'; /** * Restores decrypted data to its original format using the metadata that was stored during encryption. * This function is the inverse operation of preProcess, converting the standardized Uint8Array format back to the original data type. */ export declare function postProcess<T extends BrowserFile | BrowserBlob | ArrayBuffer | Buffer | string | number | bigint | boolean | object | null | undefined | TypedArray>(dataIn: Uint8Array, metadataIn: DataMetadata, debug?: boolean): T;