import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-By1zn6Bl.js";
import { r as buildChannelConfigSchema } from "../../config-schema-DtCrKYoX.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-DRSngo65.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-BUcvwmjg.js";
import { t as chunkTextForOutbound } from "../../text-chunking-BcNuyNPW.js";
import { c as getChatChannelMeta } from "../../core-DSrPLDCz.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-C9w9gv4K.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-91wpRJsX.js";
import "../../channel-status-bb_sFacC.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-CJIAQEsR.js";
import { a as resolveIMessageAccount } from "../../accounts-Cq0NhOhf.js";
import { f as setIMessageRuntime } from "../../monitor-reply-cache-DWNxD3ht.js";
import { o as probeIMessage } from "../../sanitize-outbound-BgPx_VTp.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-20jwnYnV.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-DyGBpSMh.js";
import "../../config-api-CyWALHVs.js";
import { t as monitorIMessageProvider } from "../../monitor-D7EroYYC.js";
import { t as sendMessageIMessage } from "../../send-hcnbUozL.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 };
