import { type Dispatcher } from 'undici'; import type { TrueConfRequest, InboundDispatchFn, Logger, TrueConfChannelConfig, InboundMessage, ResolvedChatKind } from './types'; import { WsClient } from './ws-client'; import { PerChatSendQueue } from './send-queue'; import type { OutboundQueue } from './outbound-queue'; export declare const MAX_FILE_SIZE_HARD_LIMIT_BYTES: number; export declare function extractMentionedUserIds(text: string, parseMode: string | undefined): string[]; export declare function isReplyToBot(replyMessageId: string | undefined, recent: Set | undefined): boolean; export declare function stripHtmlTags(text: string): string; export declare function rememberBotMessage(map: Map>, chatId: string, messageId: string): void; export declare function resolveChatType(params: { wsClient: WsClient; chatId: string; cache: Map; inflight: Map>; logger: Logger; }): Promise; export declare function __resetCoalesceBufferForTesting(): void; export declare function normalizeForCompare(value: string | null | undefined): string; export interface InboundContext { wsClient: WsClient; botIdentityCandidates: string[]; accountId: string; dispatch: InboundDispatchFn; logger: Logger; directChats: Map; chatTypes: Map; inflightChatTypes: Map>; recentBotMsgIds: Map>; isAlwaysRespond: (chatId: string) => boolean; matchesNickname: (text: string) => boolean; } export declare function handleInboundMessage(msg: TrueConfRequest, ctx: InboundContext): Promise; export declare function resolveAttachmentDir(logger?: Logger): string; export declare function buildSanitizedTempPath(originalName: string): { tempPath: string; sanitizedOriginalName: string; }; export declare function downloadFile(downloadUrl: string, destPath: string, maxBytes: number, logger: Logger, dispatcher?: Dispatcher): Promise<{ ok: true; } | { ok: false; error: string; }>; export declare function getMaxFileSize(cfg: TrueConfChannelConfig): number; export interface InboundAttachmentReady { ok: true; tempPath: string; sanitizedName: string; mimeType: string; kindLabel: string; size: number; } export declare function prepareInboundAttachment(params: { inboundMsg: InboundMessage; wsClient: WsClient; accountId: string; store: { directChatsByStableUserId: Map; }; channelConfig: TrueConfChannelConfig; logger: Logger; sendQueue: PerChatSendQueue; outboundQueue: OutboundQueue; dispatcher?: Dispatcher; }): Promise; export declare function unlinkTempFile(tempPath: string, logger: Logger): Promise; //# sourceMappingURL=inbound.d.ts.map