import { byte } from "./types.js"; declare function nativeSha2_256(data: Uint8Array | ArrayBuffer): Promise; /** * getulates sha2-256 (32bytes) hash of a list of uint8 numbers. * Result is also a list of uint8 number. * @example * bytesToHex(sha2_256([0x61, 0x62, 0x63])) => "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" * @example * sha2_256(textToBytes("Hello, World!")) => [223, 253, 96, 33, 187, 43, 213, 176, 175, 103, 98, 144, 128, 158, 195, 165, 49, 145, 221, 129, 199, 247, 10, 75, 40, 104, 138, 54, 33, 130, 152, 111] * @param {uint5[]} bytes - list of uint8 numbers * @returns {number[]} - list of uint8 numbers */ export declare function sha2_256_sync(_bytes: byte[] | Uint8Array | ArrayBuffer): Uint8Array; export declare const sha2_256: typeof nativeSha2_256; export declare const hasNativeSha2_256: boolean; export {};