/** * Convert an object into a byte buffer. * * @throws TypeError if input type is not supported */ export declare const coerceToBytes: (buffer: Uint8Array | ArrayBuffer) => Uint8Array; /** * Convert passphrase into a byte buffer. * * @throws TypeError if input type is not supported */ export declare const passphraseBytes: (passphrase: string | Uint8Array | ArrayBuffer) => any; /** * Allocate a buffer of specified length on Emscripten heap. */ export declare const heapAlloc: (length: number) => any; /** * Move an array into Emscripten heap from JavaScript heap. */ export declare const heapPutArray: (array: number[] | Uint8Array, buffer: number) => void; /** * Move an array from Emscripten heap into JavaScript heap. */ export declare const heapGetArray: (buffer: number, length: number) => Uint8Array; /** * Free a buffer on Emscripten heap. */ export declare const heapFree: (buffer: number | undefined | null, length: number | undefined) => void;