/// /** * Hashes a plain password. */ export declare function hash(password: string): Promise; /** * Compares a plain password to a hashed password. * @returns A promise that resolves with true if the password matches or false if it does not. */ export declare function compare(password: string, hashed: string): Promise; /** * Generates count random bytes. */ export declare function random(count: number): Promise; /** Escapes a string for use in a regex */ export declare function regexEscape(pattern: string): string;