import { A as ChannelPollResult } from "./types.core-vBz2zUOE.js"; import { b as OutboundDeliveryResult, n as ChannelOutboundAdapter } from "./outbound.types-ylohpEJA.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 { type ChannelOutboundAdapter, ChannelSendRawResult, type OutboundDeliveryResult, attachChannelToResult, attachChannelToResults, buildChannelSendResult, createAttachedChannelResultAdapter, createEmptyChannelResult, createRawChannelSendResultAdapter };