import {Dequeue, QueueMessage} from "anbaric-tsapi"; interface RemoteQueue extends Dequeue { confirm(message : QueueMessage) : Promise; // Push a message that could not be delivered yet (e.g. its consumer has not // registered) into the future with a growing back-off, so a momentary race // resolves itself. After enough bounces the message is cancelled. debounce(message : QueueMessage) : Promise; // Discard a message that can never be delivered. Removes it like confirm, // but signals an error. cancel(message : QueueMessage) : Promise; size() : Promise; } export { RemoteQueue }