/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ /** Hash a plaintext password. Returns a full PHC string. */ export declare function hashPassword(plaintext: string): Promise; /** * Verify a plaintext password against a stored PHC string. Returns `false` * on mismatch — never throws for a normal mismatch. Re-throws on malformed * hash strings or underlying library errors so those get surfaced. */ export declare function verifyPassword(plaintext: string, phc: string): Promise;