import type { Config } from '@xopcai/xopc/config/schema.js'; import type { ChannelPluginInitOptions } from '@xopcai/xopc/channels/plugin-types.js'; import type { MessageBus } from '@xopcai/xopc/infra/bus/index.js'; import type { SlackRuntimeCaches } from '../state/caches.js'; import type { SlackAuthIdentity } from '../transport/client.js'; export interface SlackSlashResponseBudget { remaining: number; post: (body: { text: string; blocks?: Array>; response_type?: 'ephemeral' | 'in_channel'; }) => Promise; } /** * Render an adaptive Slack option menu for slash command arguments matching OpenClaw's * priority rules: 3-5 short options -> overflow; 1-2 options -> buttons; 6-100 -> static_select. */ export declare function buildSlackSlashOptionMenuBlocks(params: { title: string; actionPrefix: string; options: Array<{ label: string; value: string; }>; }): Array>; export declare function handleSlackSlashCommand(params: { payload: Record; accountId: string; identity: SlackAuthIdentity; getConfig: () => Config; bus: MessageBus; host: NonNullable; caches: SlackRuntimeCaches; onStopChannelThread?: (channelId: string, threadTs?: string) => void; }): Promise<{ ackText?: string; }>;