import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { _ as TelegramAccountConfig, v as TelegramActionConfig } from "./types.channels-DdU7GqnS.js"; import { t as TelegramTransport } from "./fetch-C01cy29q.js"; //#region extensions/telegram/src/account-config.d.ts declare function resolveTelegramAccountConfig(cfg: KlawConfig, accountId: string): TelegramAccountConfig | undefined; declare function mergeTelegramAccountConfig(cfg: KlawConfig, accountId: string): TelegramAccountConfig; //#endregion //#region extensions/telegram/src/accounts.d.ts type ResolvedTelegramAccount = { accountId: string; enabled: boolean; name?: string; token: string; tokenSource: "env" | "tokenFile" | "config" | "none"; config: TelegramAccountConfig; }; type TelegramMediaRuntimeOptions = { token: string; transport?: TelegramTransport; apiRoot?: string; trustedLocalFileRoots?: readonly string[]; dangerouslyAllowPrivateNetwork?: boolean; }; declare function listTelegramAccountIds(cfg: KlawConfig): string[]; /** @internal Reset the once-per-process warning flag. Exported for tests only. */ declare function resetMissingDefaultWarnFlag(): void; declare function resolveDefaultTelegramAccountId(cfg: KlawConfig): string; declare function createTelegramActionGate(params: { cfg: KlawConfig; accountId?: string | null; }): (key: keyof TelegramActionConfig, defaultValue?: boolean) => boolean; declare function resolveTelegramMediaRuntimeOptions(params: { cfg: KlawConfig; accountId?: string | null; token: string; transport?: TelegramTransport; }): TelegramMediaRuntimeOptions; type TelegramPollActionGateState = { sendMessageEnabled: boolean; pollEnabled: boolean; enabled: boolean; }; declare function resolveTelegramPollActionGateState(isActionEnabled: (key: keyof TelegramActionConfig, defaultValue?: boolean) => boolean): TelegramPollActionGateState; declare function resolveTelegramAccount(params: { cfg: KlawConfig; accountId?: string | null; }): ResolvedTelegramAccount; declare function listEnabledTelegramAccounts(cfg: KlawConfig): ResolvedTelegramAccount[]; //#endregion export { listEnabledTelegramAccounts as a, resolveDefaultTelegramAccountId as c, resolveTelegramPollActionGateState as d, mergeTelegramAccountConfig as f, createTelegramActionGate as i, resolveTelegramAccount as l, TelegramMediaRuntimeOptions as n, listTelegramAccountIds as o, resolveTelegramAccountConfig as p, TelegramPollActionGateState as r, resetMissingDefaultWarnFlag as s, ResolvedTelegramAccount as t, resolveTelegramMediaRuntimeOptions as u };