UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

12 lines • 857 B
import type { SlackAccessor } from '../../accessor/slack.ts'; import type { SlackResponse } from './client.ts'; export declare function postMessage(accessor: SlackAccessor, channelId: string, text: string): Promise<SlackResponse>; export declare function replyToThread(accessor: SlackAccessor, channelId: string, threadTs: string, text: string): Promise<SlackResponse>; /** * Share a file in a channel or thread, the way Slack's own SDKs do: ask for * an upload URL, send the bytes there, then complete the upload into the * conversation. The completion is a JSON body, so a long `initial_comment` * never outgrows a request line. */ export declare function uploadFile(accessor: SlackAccessor, channelId: string, filename: string, data: Uint8Array, initialComment?: string, threadTs?: string): Promise<SlackResponse>; //# sourceMappingURL=post.d.ts.map