/** @deprecated Use {@link sha256Hash} instead. */ export declare function hashSHA256(input: string): Promise; /** @deprecated Use {@link sha256HashBuffer} instead. */ export declare function hashSHA256ToBuffer(input: string): Promise>; /** * Synchronously computes the SHA-256 hash of a string and returns it as a * lowercase hexadecimal string. * * @param input - The string to hash. * @returns The SHA-256 digest encoded as a 64-character hex string. * * @example * ```ts * const digest = sha256Hash("hello"); * // "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824" * ``` */ export declare function sha256Hash(input: string): string; /** * Synchronously computes the SHA-256 hash of a string and returns the raw * 32-byte digest as a {@link Buffer}. * * @param input - The string to hash. * @returns The SHA-256 digest as a 32-byte `Buffer`. * * @example * ```ts * const digest = sha256HashBuffer("hello"); * digest.length; // 32 * ``` */ export declare function sha256HashBuffer(input: string): Buffer;