UNPKG

@keypo/typescript-sdk

Version:

A TypeScript SDK for using Keypo

10 lines (9 loc) 585 B
import { DataMetadata, TypedArray, BrowserFile, BrowserBlob } from './utils/types'; /** * Prepares data for encryption by converting it to a Uint8 byte array and setting appropriate metadata. * Supports multiple input types including files, strings, numbers, and objects. */ export declare function preProcess(dataIn: BrowserFile | BrowserBlob | ArrayBuffer | Buffer | string | number | bigint | boolean | object | null | undefined | TypedArray, name: string, debug?: boolean, metadataIn?: Record<string, any>): Promise<{ dataOut: Uint8Array; metadataOut: DataMetadata; }>;