import type { HexString } from '../types'; /** * @name rescuePrimeAsU8a * @summary Creates a rescue prime u8a from the input. * @description * From a `Uint8Array` input, create the rescue prime and return the result as a u8a. * * if `asU64a` set true, the u8a data each items will as `biguint64`, * if `asU64a` set false, the u8a will transform to buffer and generate `BigUint64Array`. * @example *
* * ```javascript * import { rescuePrimeAsU8a } from '@zcloak/crypto'; * * rescuePrimeAsU8a('abcd1234'); // => [212, 187, 16, 176, 223, 111, 125, 152, 232, 223, 53, 52, 239, 99, 173, 71, 181, 59, 174, 51, 80, 175, 78, 174, 66, 122, 204, 8, 39, 100, 158, 253] * ``` */ export declare function rescuePrimeAsU8a(data: HexString | Uint8Array | string, asU64a?: boolean): Uint8Array; /** * @description Creates a rescue prime hex from the input. */ export declare function rescuePrimeAsHex(data: HexString | Uint8Array | string, asU64a?: boolean): HexString;