type DeriveBitsFn = (plain: string, salt: Uint8Array, iterations: number, hash: string, keyBytes: number) => Promise<ArrayBuffer>;
/** Returns `pbkdf2sha512$<iter>$<saltB64>$<hashB64>`. */
declare function hashPassword(plain: string, opts?: {
    deriveBits?: DeriveBitsFn;
}): Promise<string>;
/** Parses iter and salt from `stored` — never from a module constant. */
declare function verifyPassword(plain: string, stored: string, opts?: {
    deriveBits?: DeriveBitsFn;
}): Promise<boolean>;

export { type DeriveBitsFn, hashPassword, verifyPassword };
