import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-C7N4Rwku.js";
import { i as buildChannelConfigSchema } from "../../config-schema-C1QEePO7.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-BFvX3ldW.js";
import { i as resolveChannelMediaMaxBytes } from "../../media-runtime-BKxRHMAX.js";
import { t as chunkTextForOutbound } from "../../text-chunking-DNEjp3TM.js";
import { c as getChatChannelMeta } from "../../core-Vq_PHglM.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-DNhqI-OE.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-qb1hhp-k.js";
import "../../channel-status-DfQ_E9hh.js";
import { n as IMessageConfigSchema } from "../../zod-schema.providers-core-_2ixsELS.js";
import { o as resolveIMessageAccount } from "../../accounts-CKDROtBW.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy--YkOZq6C.js";
import { r as setIMessageRuntime } from "../../runtime-CKNRV1AW.js";
import { o as probeIMessage } from "../../sanitize-outbound-BDP_FlW_.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-x_VCKR9f.js";
import "../../config-api-Cl-_bPW0.js";
import { t as monitorIMessageProvider } from "../../monitor-Lnz8AFCJ.js";
import { t as sendMessageIMessage } from "../../send-DLbOUdqc.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 };
