import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js"; import { At as FasedAgentConfig, F as ChannelAccountSnapshot, J as ChannelMessageActionAdapter, Kt as TelegramAccountConfig, it as ChannelStatusIssue, n as ChannelPlugin, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta } from "./types.plugin-BcSBq42x.js"; import { $t as listWhatsAppDirectoryGroupsFromConfig, Cn as createActionGate, Dn as readStringParam, Gt as resolveOpenProviderRuntimeGroupPolicy, Jt as listDiscordDirectoryPeersFromConfig, Qt as listTelegramDirectoryPeersFromConfig, Ut as resolveAllowlistProviderRuntimeGroupPolicy, Vt as TelegramProbe, Wt as resolveDefaultGroupPolicy, Xt as listSlackDirectoryPeersFromConfig, Yt as listSlackDirectoryGroupsFromConfig, Zt as listTelegramDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, en as listWhatsAppDirectoryPeersFromConfig, qt as listDiscordDirectoryGroupsFromConfig, t as PluginRuntime } from "./types-CHm_inlK.js"; import { D as normalizeE164 } from "./types-jHuiH7-5.js"; import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-CQJ3plrh.js"; import { _ as buildTokenChannelStatusSummary, d as resolveTelegramGroupRequireMention, f as resolveTelegramGroupToolPolicy } from "./group-mentions-q3hUTCt7.js"; import { s as TelegramConfigSchema } from "./zod-schema.providers-core-DVdlSg2z.js"; //#region src/telegram/accounts.d.ts type ResolvedTelegramAccount = { accountId: string; enabled: boolean; name?: string; token: string; tokenSource: "env" | "tokenFile" | "config" | "none"; config: TelegramAccountConfig; }; declare function listTelegramAccountIds(cfg: FasedAgentConfig): string[]; declare function resolveDefaultTelegramAccountId(cfg: FasedAgentConfig): string; declare function resolveTelegramAccount(params: { cfg: FasedAgentConfig; accountId?: string | null; }): ResolvedTelegramAccount; //#endregion //#region src/channels/plugins/onboarding/telegram.d.ts declare const telegramOnboardingAdapter: ChannelOnboardingAdapter; //#endregion //#region src/channels/plugins/normalize/telegram.d.ts declare function normalizeTelegramMessagingTarget(raw: string): string | undefined; declare function looksLikeTelegramTargetId(raw: string): boolean; //#endregion //#region src/channels/plugins/status-issues/telegram.d.ts declare function collectTelegramStatusIssues(accounts: ChannelAccountSnapshot[]): ChannelStatusIssue[]; //#endregion //#region src/telegram/outbound-params.d.ts declare function parseTelegramReplyToMessageId(replyToId?: string | null): number | undefined; declare function parseTelegramThreadId(threadId?: string | number | null): number | undefined; //#endregion export { ChannelMessageActionAdapter, ChannelMessageActionName, ChannelPlugin, DEFAULT_ACCOUNT_ID, FasedAgentConfig, FasedAgentPluginApi, PAIRING_APPROVED_MESSAGE, PluginRuntime, type ResolvedTelegramAccount, TelegramConfigSchema, type TelegramProbe, applyAccountNameToChannelSection, buildChannelConfigSchema, buildTokenChannelStatusSummary, collectTelegramStatusIssues, createActionGate, deleteAccountFromConfigSection, emptyPluginConfigSchema, formatPairingApproveHint, getChatChannelMeta, listDiscordDirectoryGroupsFromConfig, listDiscordDirectoryPeersFromConfig, listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig, listTelegramAccountIds, listTelegramDirectoryGroupsFromConfig, listTelegramDirectoryPeersFromConfig, listWhatsAppDirectoryGroupsFromConfig, listWhatsAppDirectoryPeersFromConfig, looksLikeTelegramTargetId, migrateBaseNameToDefaultAccount, normalizeAccountId, normalizeE164, normalizeTelegramMessagingTarget, parseTelegramReplyToMessageId, parseTelegramThreadId, readStringParam, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, resolveDefaultTelegramAccountId, resolveOpenProviderRuntimeGroupPolicy, resolveTelegramAccount, resolveTelegramGroupRequireMention, resolveTelegramGroupToolPolicy, setAccountEnabledInConfigSection, telegramOnboardingAdapter };