import { type HistoryEntry } from "../auto-reply/reply/history.js"; import { finalizeInboundContext } from "../auto-reply/reply/inbound-context.js"; import type { OpenClawConfig } from "../config/config.js"; import type { TelegramDirectConfig, TelegramGroupConfig, TelegramTopicConfig } from "../config/types.js"; import type { ResolvedAgentRoute } from "../routing/resolve-route.js"; import type { TelegramMediaRef, TelegramMessageContextOptions } from "./bot-message-context.types.js"; import { type TelegramThreadSpec } from "./bot/helpers.js"; import type { TelegramContext } from "./bot/types.js"; export declare function buildTelegramInboundContextPayload(params: { cfg: OpenClawConfig; primaryCtx: TelegramContext; msg: TelegramContext["message"]; allMedia: TelegramMediaRef[]; replyMedia: TelegramMediaRef[]; isGroup: boolean; isForum: boolean; chatId: number | string; senderId: string; senderUsername: string; resolvedThreadId?: number; dmThreadId?: number; threadSpec: TelegramThreadSpec; route: ResolvedAgentRoute; rawBody: string; bodyText: string; historyKey?: string; historyLimit: number; groupHistories: Map; groupConfig?: TelegramGroupConfig | TelegramDirectConfig; topicConfig?: TelegramTopicConfig; stickerCacheHit: boolean; effectiveWasMentioned: boolean; commandAuthorized: boolean; locationData?: import("../channels/location.js").NormalizedLocation; options?: TelegramMessageContextOptions; dmAllowFrom?: Array; }): Promise<{ ctxPayload: ReturnType; skillFilter: string[] | undefined; }>;