import { Options } from 'amqplib' ; import { Replies } from 'amqplib/properties' ; export interface OriginalQueueInterface { createQueue ( ) : void ; getQueue ( ) : void ; deleteQueue ( name , options ) : Promise < deleteQueueRsType > ; purgeQueue ( name ) : Promise < purgeQueueRsType > ; } type deleteQueueRsType = Replies . DeleteQueue ; type purgeQueueRsType = Replies . PurgeQueue ;