//#region src/password.d.ts
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>;
//#endregion
export { DeriveBitsFn, hashPassword, verifyPassword };