import { BinaryToTextEncoding } from 'node:crypto'; interface Options { keyLength: number; saltLength: number; } type HashResult = E extends 'base64' | 'base64url' | 'hex' ? string : Buffer; export declare const defaults: Options & { encoding: BinaryToTextEncoding | null }; export declare function hashPassword( password: string | Buffer, options?: Partial & { encoding?: E } ): Promise>; export declare function comparePassword( clear: string | Buffer, hash: string | Buffer, options?: { encoding?: null | BinaryToTextEncoding } ): Promise;