import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-B32J-iNN.js";
import { r as buildChannelConfigSchema } from "../../config-schema-8IzvwNe8.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-xZ4-bv2H.js";
import { c as getChatChannelMeta } from "../../core-hD7EIiWN.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-CYCcv-cW.js";
import { t as chunkTextForOutbound } from "../../text-chunking-COIJnNCe.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-C9w9gv4K.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-OLbLA_K5.js";
import "../../channel-status-DX_9DBKz.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-Bphcwul4.js";
import { i as resolveIMessageAccount } from "../../accounts-DLZ70Slk.js";
import { t as probeIMessage } from "../../probe-CPcAEKX0.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-DZ0QBnYx.js";
import { l as setIMessageRuntime, n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-QZ_NKapH.js";
import "../../sanitize-outbound-BruVR1By.js";
import "../../config-api-Bf7DmjPv.js";
import { t as monitorIMessageProvider } from "../../monitor-BaF1gR2U.js";
import { t as sendMessageIMessage } from "../../send-Csa2Sb95.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 };
