import * as Domain from "../../domain"; import { Task } from "../../utils/tasks"; import { AgentContext } from "../Context"; import { Connection } from "../connections"; /** * attempt to deliver a Message across a Connection * * attempt to find the Connection for the Message.to * in ctx.Connections */ interface Args { /** * Message to be delivered */ message: Domain.Message | Domain.ApiRequest; /** * Connection to use */ connection?: Connection; } export declare class Send extends Task { run(ctx: AgentContext): Promise; } export {};