import type { Block, KnownBlock } from '@slack/types'; import type { ChannelOutboundAdapter } from '@xopcai/xopc/channels/plugin-types.js'; import type { Config } from '@xopcai/xopc/config/schema.js'; import { type ResolvedSlackAccount } from '../state/accounts.js'; import type { SlackRuntimeCaches } from '../state/caches.js'; import { type SlackAuthIdentity } from '../transport/client.js'; import { type SlackChartSpec, type SlackTableSpec } from './blocks.js'; export interface SendSlackMessageParams { account: ResolvedSlackAccount; token: string; target: string; text?: string; threadTs?: string; replyBroadcast?: boolean; topLevel?: boolean; charts?: SlackChartSpec[]; tables?: SlackTableSpec[]; blocks?: Array>; buttons?: Array>; identity?: { username?: string; iconEmoji?: string; iconUrl?: string; }; alreadyMrkdwn?: boolean; teamId?: string; caches: SlackRuntimeCaches; } export declare function sendSlackRichMessage(params: SendSlackMessageParams): Promise<{ messageId: string; channelId: string; }>; export declare function createSlackOutboundAdapter(params: { getConfig: () => Config; isAccountRunning: (accountId: string) => boolean; getIdentity: (accountId: string) => SlackAuthIdentity | undefined; caches: SlackRuntimeCaches; }): ChannelOutboundAdapter;