import type { BotConfig } from "../config/config.js"; import type { TelegramAccountConfig, TelegramActionConfig } from "../config/types.js"; export type ResolvedTelegramAccount = { accountId: string; enabled: boolean; name?: string; token: string; tokenSource: "env" | "tokenFile" | "config" | "none"; config: TelegramAccountConfig; }; export declare function listTelegramAccountIds(cfg: BotConfig): string[]; /** @internal Reset the once-per-process warning flag. Exported for tests only. */ export declare function resetMissingDefaultWarnFlag(): void; export declare function resolveDefaultTelegramAccountId(cfg: BotConfig): string; export declare function createTelegramActionGate(params: { cfg: BotConfig; accountId?: string | null; }): (key: keyof TelegramActionConfig, defaultValue?: boolean) => boolean; export type TelegramPollActionGateState = { sendMessageEnabled: boolean; pollEnabled: boolean; enabled: boolean; }; export declare function resolveTelegramPollActionGateState(isActionEnabled: (key: keyof TelegramActionConfig, defaultValue?: boolean) => boolean): TelegramPollActionGateState; export declare function resolveTelegramAccount(params: { cfg: BotConfig; accountId?: string | null; }): ResolvedTelegramAccount; export declare function listEnabledTelegramAccounts(cfg: BotConfig): ResolvedTelegramAccount[];