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 SlackInboundEventInput { accountId: string; event: Record; identity: SlackAuthIdentity; appId?: string; teamId?: string; eventId?: string; } export interface SlackInboundPipelineDeps { getConfig: () => Config; bus: MessageBus; host: NonNullable; caches: SlackRuntimeCaches; sendDirectText: (params: { accountId: string; channelId: string; text: string; threadTs?: string; }) => Promise; onFailure?: (message: string) => void; } export declare function createSlackInboundPipeline(deps: SlackInboundPipelineDeps): { processMessageEvent: (input: SlackInboundEventInput) => Promise; ensureDurableRestored: (scope: string) => void; };