import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-By1zn6Bl.js";
import { r as buildChannelConfigSchema } from "../../config-schema-BRAUIZly.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-Q5p9ejlB.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-VKIZMDjK.js";
import { t as chunkTextForOutbound } from "../../text-chunking-BcNuyNPW.js";
import { c as getChatChannelMeta } from "../../core-Efs9FO4V.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-C9w9gv4K.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-Bw3y4bRG.js";
import "../../channel-status-D86kmK7E.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-BSYZqdmV.js";
import { a as resolveIMessageAccount } from "../../accounts-CLKCBKB9.js";
import { f as setIMessageRuntime } from "../../monitor-reply-cache-BhfMAP7D.js";
import { o as probeIMessage } from "../../sanitize-outbound-Elw64fvu.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-Idk-uArL.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-B_8KvZGV.js";
import "../../config-api-BRrJZoCn.js";
import { t as monitorIMessageProvider } from "../../monitor-D_SSzIw0.js";
import { t as sendMessageIMessage } from "../../send-C7TlGygT.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 };
