import { BinaryToTextEncoding, HashOptions } from 'node:crypto'; type HashResult = E extends 'base64' | 'base64url' | 'hex' | undefined ? string : Buffer; type HashFn = ( value: string | Buffer, options?: HashOptions & { encoding?: E } ) => HashResult; declare function hash( algorithm: string, value: string | Buffer, options?: HashOptions & { encoding?: E } ): HashResult; export declare const md5: HashFn; export declare const sha1: HashFn; export declare const sha224: HashFn; export declare const sha256: HashFn; export declare const sha384: HashFn; export declare const sha512: HashFn; export default hash;