import { HashAlgorithm } from '@pigi/core-utils' ; import { MessageSubscriber } from '../message-subscriber.interface' ; export interface HashPreimageDBInterface extends MessageSubscriber { param preimage param hashAlgorithm storePreimage ( preimage , hashAlgorithm ) : Promise < void > ; param hash param hashAlgorithm returns getPreimage ( hash , hashAlgorithm ) : Promise < string | undefined > ; }