import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-Df9e41E6.js";
import { r as buildChannelConfigSchema } from "../../config-schema-BtpD3jkn.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-lj5quus3.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-D2Zh1jmf.js";
import { t as chunkTextForOutbound } from "../../text-chunking-B61JF88o.js";
import { c as getChatChannelMeta } from "../../core-CMjjhlxY.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-DNhqI-OE.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-Czl1BW8I.js";
import "../../channel-status-CPyWiAgk.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-Z1ti3Qi7.js";
import { a as resolveIMessageAccount } from "../../accounts-Bx5royFK.js";
import { f as setIMessageRuntime } from "../../monitor-reply-cache-ROMrYdRl.js";
import { o as probeIMessage } from "../../sanitize-outbound-DyIN1U3e.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-B7Jqv0H3.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-BTW8zymF.js";
import "../../config-api-j3ySRmUR.js";
import { t as monitorIMessageProvider } from "../../monitor-CNrxvDgj.js";
import { t as sendMessageIMessage } from "../../send-DmtTZfdI.js";
//#region extensions/imessage/src/config-accessors.ts
function resolveIMessageConfigAllowFrom(params) {
	return (resolveIMessageAccount(params).config.allowFrom ?? []).map((entry) => String(entry));
}
function resolveIMessageConfigDefaultTo(params) {
	const defaultTo = resolveIMessageAccount(params).config.defaultTo;
	if (defaultTo == null) return;
	return defaultTo.trim() || void 0;
}
//#endregion
export { DEFAULT_ACCOUNT_ID, IMessageConfigSchema, PAIRING_APPROVED_MESSAGE, buildChannelConfigSchema, buildComputedAccountStatusSnapshot, chunkTextForOutbound, collectStatusIssuesFromLastError, formatTrimmedAllowFromEntries, getChatChannelMeta, imessageMessageActions, looksLikeIMessageTargetId, monitorIMessageProvider, normalizeIMessageMessagingTarget, probeIMessage, resolveChannelMediaMaxBytes, resolveIMessageConfigAllowFrom, resolveIMessageConfigDefaultTo, resolveIMessageGroupRequireMention, resolveIMessageGroupToolPolicy, sendMessageIMessage, setIMessageRuntime };
