import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-Df9e41E6.js";
import { r as buildChannelConfigSchema } from "../../config-schema-D0SX0ujK.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-lj5quus3.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-BxBmcoyH.js";
import { t as chunkTextForOutbound } from "../../text-chunking-D45TeeEs.js";
import { c as getChatChannelMeta } from "../../core-K48vOKyL.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-DNhqI-OE.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-BevxX6Pu.js";
import "../../channel-status-DxlXr0Xh.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-BZhqMMPT.js";
import { a as resolveIMessageAccount } from "../../accounts-DJqryTgf.js";
import { f as setIMessageRuntime } from "../../monitor-reply-cache-DQlAUDvc.js";
import { o as probeIMessage } from "../../sanitize-outbound-BYPAiRHp.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-CxCRq09l.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-B4AoLyk1.js";
import "../../config-api-BKqszO3R.js";
import { t as monitorIMessageProvider } from "../../monitor-CnzvQmUn.js";
import { t as sendMessageIMessage } from "../../send-C-vrBCFv.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 };
