import { ResultMessage } from "./messages" ; /**
 * ResultBackend manages interactions with databases and result queues.
 */ export interface ResultBackend { param message returns put < T > ( message ) : Promise < string > ; param taskId param timeout returns get < T > ( { taskId , timeout } ) : Promise < ResultMessage < T > > ; param taskId returns delete ( taskId ) : Promise < string > ; returns disconnect ( ) : Promise < void > ; returns end ( ) : Promise < void > ; returns uri ( ) : string ; } /**
 * Options for ResultBackend#get().
 */ export interface GetOptions { /** A task UUID. */ taskId : string ; /** In milliseconds. */ timeout ? : number ; }