import { HttpError } from 'spirit.io/lib/utils'; /** * generates random string of characters i.e salt * @function * @param {number} length - Length of the random string. */ export declare function genRandomString(length: number): any; /** * hash password with sha512. * @function * @param {string} password - List of required fields. * @param {string} salt - Data to be validated. */ export declare function sha512(password: string, salt: string): { salt: string; hash: any; }; export declare function badRequest(text: string): HttpError; export declare function badAuthMethod(authMethod: string): HttpError; export declare function unauthorized(): HttpError;