import type { HexString } from '../types'; /** * @name rescuePrimeOptimizedAsU8a * @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 { rescuePrimeOptimizedAsU8a } from '@zcloak/crypto'; * * rescuePrimeOptimizedAsU8a('abcd1234'); // => [16, 75, 170, 23, 222, 70, 142, 40, 16, 103, 147, 222, 221, 21, 60, 164, 69, 106, 95, 221, 24, 137, 217, 4, 226, 10, 28, 45, 210, 33, 73, 44] * ``` */ export declare function rescuePrimeOptimizedAsU8a(data: HexString | Uint8Array | string, asU64a?: boolean): Uint8Array; /** * @description Creates a rescue prime optimized hex from the input. */ export declare function rescuePrimeOptimizedAsHex(data: HexString | Uint8Array | string, asU64a?: boolean): HexString;