import type { Message } from "@grammyjs/types"; import type { Bot } from "grammy"; import type { DmPolicy } from "agdi/plugin-sdk/config-runtime"; import { upsertChannelPairingRequest } from "agdi/plugin-sdk/conversation-runtime"; import { type NormalizedAllowFrom } from "./bot-access.js"; type TelegramDmAccessLogger = { info: (obj: Record, msg: string) => void; }; export declare function enforceTelegramDmAccess(params: { isGroup: boolean; dmPolicy: DmPolicy; msg: Message; chatId: number; effectiveDmAllow: NormalizedAllowFrom; accountId: string; bot: Bot; logger: TelegramDmAccessLogger; upsertPairingRequest?: typeof upsertChannelPairingRequest; }): Promise; export {};