import { type ChatLabels, type Delivery, type Inbound, type SessionIdentity } from './gateway/index.ts'; import type { GatewayRuntime } from './runtime.ts'; type SlackSay = (args: { text: string; thread_ts?: string; }) => Promise<{ ts?: string; } | unknown>; type SlackUser = { profile?: { display_name?: string; real_name?: string; }; real_name?: string; name?: string; }; type SlackChannel = { name?: string; is_im?: boolean; user?: string; }; export declare function peerNameFromSlackUser(user: SlackUser | undefined): string | undefined; export declare function labelsFromConversation(channel: SlackChannel | undefined): ChatLabels & { imUser?: string; }; export declare function slackIdentity(args: { channel: string; threadTs?: string; }): SessionIdentity; export declare function inboundFromSlack(args: { user: string; channel: string; threadTs?: string; text: string; id: string; mentioned?: boolean; }): Inbound; export declare function presentSlackDelivery(delivery: Delivery, say: SlackSay): Promise; export declare function runSlack(runtime: GatewayRuntime, tokens: { bot: string; app: string; }): Promise<() => Promise>; export {};