Deferred
import type { Deferred } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
interface Deferred <T> extends Promise<T> {
reject: (reason?: any) => void;
resolve: (value?: T | PromiseLike<T>) => void;
}