import { type ChatPostMessageResponse } from '@slack/web-api';
import { type ActivityEvent } from '@awell-health/extensions-core';
export declare class SlackClient {
    private readonly client;
    constructor({ botToken }: {
        botToken: string;
    });
    postMessage({ channel, text, }: {
        channel: string;
        text: string;
    }): Promise<ChatPostMessageResponse>;
}
interface SlackErrorResponse {
    code: string;
    data: {
        ok: boolean;
        error: string;
    };
}
export declare const isSlackErrorResponse: (error: unknown) => error is SlackErrorResponse;
export declare const mapSlackErrorToActivityEvent: (error: SlackErrorResponse) => ActivityEvent;
export {};
