import { t as DEFAULT_ACCOUNT_ID } from "../../account-id-5IgE9UKY.js";
import { r as buildChannelConfigSchema } from "../../config-schema-CkMNWZwI.js";
import { p as formatTrimmedAllowFromEntries } from "../../channel-config-helpers-IR0aNLdV.js";
import { a as resolveChannelMediaMaxBytes } from "../../media-runtime-C_-BWUVF.js";
import { t as chunkTextForOutbound } from "../../text-chunking-TOrSHG9r.js";
import { c as getChatChannelMeta } from "../../core-pSLWvpG9.js";
import { t as PAIRING_APPROVED_MESSAGE } from "../../pairing-message-DNhqI-OE.js";
import { c as collectStatusIssuesFromLastError, r as buildComputedAccountStatusSnapshot } from "../../status-helpers-BkNNjsVg.js";
import "../../channel-status-Cu1QU90N.js";
import { i as IMessageConfigSchema } from "../../bundled-channel-config-schema-Byblaz-E.js";
import { a as resolveIMessageAccount } from "../../accounts-8ZtNzaQl.js";
import { p as setIMessageRuntime } from "../../monitor-reply-cache-CFTOePbf.js";
import { o as probeIMessage } from "../../sanitize-outbound-DAcXSwrQ.js";
import { n as resolveIMessageGroupToolPolicy, r as imessageMessageActions, t as resolveIMessageGroupRequireMention } from "../../group-policy-C7wga3D8.js";
import { n as normalizeIMessageMessagingTarget, t as looksLikeIMessageTargetId } from "../../normalize-CPV8F0D7.js";
import "../../config-api-3SkTUOhd.js";
import { t as monitorIMessageProvider } from "../../monitor-DiDgYyQu.js";
import { t as sendMessageIMessage } from "../../send-BNTAM1XO.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 };
