import { b as OutboundDeliveryResult, n as ChannelOutboundAdapter } from "./outbound.types-P0E6jGE1.js"; import { A as ChannelPollResult } from "./types.core-BSyOg0vX.js"; //#region src/plugin-sdk/channel-send-result.d.ts type ChannelSendRawResult = { ok: boolean; messageId?: string | null; error?: string | null; }; declare function attachChannelToResult(channel: string, result: T): { channel: string; } & T; declare function attachChannelToResults(channel: string, results: readonly T[]): ({ channel: string; } & T)[]; declare function createEmptyChannelResult(channel: string, result?: Partial> & { messageId?: string; }): OutboundDeliveryResult; type MaybePromise = T | Promise; type SendTextParams = Parameters>[0]; type SendMediaParams = Parameters>[0]; type SendPollParams = Parameters>[0]; declare function createAttachedChannelResultAdapter(params: { channel: string; sendText?: (ctx: SendTextParams) => MaybePromise>; sendMedia?: (ctx: SendMediaParams) => MaybePromise>; sendPoll?: (ctx: SendPollParams) => MaybePromise>; }): Pick; declare function createRawChannelSendResultAdapter(params: { channel: string; sendText?: (ctx: SendTextParams) => MaybePromise; sendMedia?: (ctx: SendMediaParams) => MaybePromise; }): Pick; /** Normalize raw channel send results into the shape shared outbound callers expect. */ declare function buildChannelSendResult(channel: string, result: ChannelSendRawResult): { channel: string; ok: boolean; messageId: string; error: Error | undefined; }; //#endregion export { createAttachedChannelResultAdapter as a, buildChannelSendResult as i, attachChannelToResult as n, createEmptyChannelResult as o, attachChannelToResults as r, createRawChannelSendResultAdapter as s, ChannelSendRawResult as t };