curb-virtualized-chat
Version:
A virtualized chat component for React applications.
9 lines (8 loc) • 594 B
TypeScript
/// <reference types="node" />
export declare const decryptFileWithDecipher: (encryptedData: Uint8Array, key: string, nonce: string) => Promise<Buffer | null>;
export declare const encryptFileWithCipher: (fileBuffer: Buffer, key: string, nonce: string, name: string) => Promise<{
encryptedData: Buffer;
name: string;
} | null>;
export declare function encryptFileWithCypherStream(key: string, nonce: string, readableStream: ReadableStream): Promise<Blob>;
export declare function decryptFileWithDecipherStream(key: string, nonce: string, readableStream: ReadableStream): Promise<Blob>;