import {IHashType, ISecurityType} from './constants'; export interface IHashService { config: any; securityTypeIsSupported(securityType: ISecurityType): securityType is IHashType; getHash(value: any, hashType?: IHashType, secret?: string, autoSalt?: boolean, salt?: string): Promise; compareHash(value: any, hash: string, hashType?: IHashType, secret?: string): Promise; secureCompare(a: string, b: string): boolean; }