import type { ReplyPayload } from "../../auto-reply/types.js";
import type { SKYKOIConfig } from "../../config/config.js";
import type { sendMessageDiscord } from "../../discord/send.js";
import type { sendMessageIMessage } from "../../imessage/send.js";
import type { sendMessageSlack } from "../../slack/send.js";
import type { sendMessageTelegram } from "../../telegram/send.js";
import type { sendMessageWhatsApp } from "../../web/outbound.js";
import type { NormalizedOutboundPayload } from "./payloads.js";
import type { OutboundChannel } from "./targets.js";
import { sendMessageSignal } from "../../signal/send.js";
export type { NormalizedOutboundPayload } from "./payloads.js";
export { normalizeOutboundPayloads } from "./payloads.js";
type SendMatrixMessage = (to: string, text: string, opts?: {
    mediaUrl?: string;
    replyToId?: string;
    threadId?: string;
    timeoutMs?: number;
}) => Promise<{
    messageId: string;
    roomId: string;
}>;
export type OutboundSendDeps = {
    sendWhatsApp?: typeof sendMessageWhatsApp;
    sendTelegram?: typeof sendMessageTelegram;
    sendDiscord?: typeof sendMessageDiscord;
    sendSlack?: typeof sendMessageSlack;
    sendSignal?: typeof sendMessageSignal;
    sendIMessage?: typeof sendMessageIMessage;
    sendMatrix?: SendMatrixMessage;
    sendMSTeams?: (to: string, text: string, opts?: {
        mediaUrl?: string;
    }) => Promise<{
        messageId: string;
        conversationId: string;
    }>;
};
export type OutboundDeliveryResult = {
    channel: Exclude<OutboundChannel, "none">;
    messageId: string;
    chatId?: string;
    channelId?: string;
    roomId?: string;
    conversationId?: string;
    timestamp?: number;
    toJid?: string;
    pollId?: string;
    meta?: Record<string, unknown>;
};
export declare function deliverOutboundPayloads(params: {
    cfg: SKYKOIConfig;
    channel: Exclude<OutboundChannel, "none">;
    to: string;
    accountId?: string;
    payloads: ReplyPayload[];
    replyToId?: string | null;
    threadId?: string | number | null;
    deps?: OutboundSendDeps;
    gifPlayback?: boolean;
    abortSignal?: AbortSignal;
    bestEffort?: boolean;
    onError?: (err: unknown, payload: NormalizedOutboundPayload) => void;
    onPayload?: (payload: NormalizedOutboundPayload) => void;
    mirror?: {
        sessionKey: string;
        koiId?: string;
        text?: string;
        mediaUrls?: string[];
    };
}): Promise<OutboundDeliveryResult[]>;
