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