import { HashFunction, HashFunctionConfig } from '@/crypto'; export interface HashConfig extends HashFunctionConfig { encoding?: 'hex' | 'bin'; } export declare abstract class AbstractHash implements HashFunction> { private readonly algorithm; protected constructor(algorithm: string); hash(payload: string): Promise; hash(payload: string): Promise; hash(payload: string, config?: HashConfig): Promise; hash(payload: string, config?: HashConfig): Promise; }