@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines (22 loc) • 647 B
TypeScript
import { type Block, type KnownBlock, type WebClient } from "@slack/web-api";
export type SlackSendIdentity = {
username?: string;
iconUrl?: string;
iconEmoji?: string;
};
type SlackSendOpts = {
token?: string;
accountId?: string;
mediaUrl?: string;
mediaLocalRoots?: readonly string[];
client?: WebClient;
threadTs?: string;
identity?: SlackSendIdentity;
blocks?: (Block | KnownBlock)[];
};
export type SlackSendResult = {
messageId: string;
channelId: string;
};
export declare function sendMessageSlack(to: string, message: string, opts?: SlackSendOpts): Promise<SlackSendResult>;
export {};