import type { ResolvedSlackAccount } from '../state/accounts.js'; import type { SlackRuntimeCaches } from '../state/caches.js'; export declare function agentViewMarkerKey(accountId: string, teamId: string | undefined, appId: string | undefined): string; export declare function assistantContextKey(accountId: string, channelId: string, threadTs?: string): string; export declare function setSlackSuggestedPrompts(params: { token: string; channelId: string; threadTs?: string; title?: string; prompts?: ReadonlyArray<{ title: string; message: string; }>; proxyUrl?: string; }): Promise<{ ok: boolean; agentViewDetected?: boolean; }>; export interface SlackAssistantEventCallbacks { onStopSession?: (params: { accountId: string; channelId: string; threadTs?: string; streamingMessageTs: string[]; }) => Promise | void; onRenameSession?: (params: { accountId: string; channelId: string; threadTs?: string; title: string; }) => Promise | void; } /** * Handle Slack Agent View & Assistant View lifecycle events: * - `assistant_thread_started` / `assistant_thread_context_changed` * - `app_context_changed` * - `agent_session_stopped` (native Stop button) * - `agent_session_title_changed` */ export declare function handleSlackAssistantEvent(params: { event: Record; account: ResolvedSlackAccount; token: string; teamId?: string; appId?: string; caches: SlackRuntimeCaches; callbacks?: SlackAssistantEventCallbacks; }): Promise; export declare function formatSlackUntrustedAppContext(entities: unknown[] | undefined): string | undefined;