import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-Df9e41E6.js";
import { r as buildChannelConfigSchema } from "../../config-schema-CksfghjU.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-CArQsBke.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-CPKGmHgl.js";
import { t as chunkTextForOutbound } from "../../text-chunking-D45TeeEs.js";
import { c as getChatChannelMeta } from "../../core-FbtVsADa.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-DNhqI-OE.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-DZuTTb7t.js";
import "../../channel-status-DD1h4evG.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-CBg5pIUh.js";
import { a as resolveIMessageAccount } from "../../accounts-DMn4WQs2.js";
import { f as setIMessageRuntime } from "../../monitor-reply-cache-C_LqYGNd.js";
import { o as probeIMessage } from "../../sanitize-outbound-DUrcm95u.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-CeWR0r3d.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-N1JZLhkg.js";
import "../../config-api-9AHxjWS5.js";
import { t as monitorIMessageProvider } from "../../monitor-uK-DHbyG.js";
import { t as sendMessageIMessage } from "../../send-ChutPkzB.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 };
