import { type SlackChannelMeta, type SlackRuntimeCaches, type SlackThreadStarter, type SlackUserProfile } from '../state/caches.js'; /** * Extract readable text from a Slack message including pasted `table` blocks rendered as TSV. */ export declare function extractSlackMessageTextWithTables(message: Record): string; export declare function renderSlackTableBlockAsTsv(rows: unknown[]): string; export declare function resolveSlackUserProfile(params: { token: string; userId: string; accountId: string; teamId?: string; proxyUrl?: string; caches: SlackRuntimeCaches; }): Promise; export declare function formatSlackProfileDisplayName(profile: SlackUserProfile | undefined): string | undefined; /** * Resolve `<@U...>` mentions in text into `<@U...> (DisplayName)` with bounded concurrency and caching. */ export declare function hydrateSlackMentions(params: { text: string; token: string; accountId: string; teamId?: string; proxyUrl?: string; caches: SlackRuntimeCaches; }): Promise<{ text: string; profiles: Record; }>; export declare function resolveSlackChannelMeta(params: { token: string; channelId: string; accountId: string; teamId?: string; proxyUrl?: string; caches: SlackRuntimeCaches; }): Promise; export declare function resolveSlackThreadStarter(params: { token: string; channelId: string; threadTs: string; accountId: string; teamId?: string; proxyUrl?: string; caches: SlackRuntimeCaches; }): Promise; export declare function invalidateSlackThreadStarter(params: { accountId: string; teamId?: string; channelId: string; threadTs: string; caches: SlackRuntimeCaches; }): void; /** * Fetch bounded recent thread or channel messages to seed conversation context on * first engagement (or after restart). Never throws — returns undefined on error. */ export declare function fetchSlackContextHistory(params: { token: string; channelId: string; threadTs?: string; currentTs: string; excludeTs?: ReadonlySet; limit: number; accountId: string; teamId?: string; proxyUrl?: string; caches: SlackRuntimeCaches; }): Promise;