import { type NormalizedLocation } from "agdi/plugin-sdk/channel-inbound"; import type { OpenClawConfig } from "agdi/plugin-sdk/config-runtime"; import type { TelegramDirectConfig, TelegramGroupConfig, TelegramTopicConfig } from "agdi/plugin-sdk/config-runtime"; import { type HistoryEntry } from "agdi/plugin-sdk/reply-history"; import { finalizeInboundContext } from "agdi/plugin-sdk/reply-runtime"; import type { ResolvedAgentRoute } from "agdi/plugin-sdk/routing"; 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?: NormalizedLocation; options?: TelegramMessageContextOptions; dmAllowFrom?: Array; }): Promise<{ ctxPayload: ReturnType; skillFilter: string[] | undefined; }>;