import { type IncomingMessage } from 'node:http'; export type SlackApiMockResponse = object | { body: object; headers?: Record; }; export interface SlackTestBlock { action_id?: string; elements?: Array<{ action_id?: string; value?: string; }>; text?: string; type: string; } export declare function startSlackApiMock(handler: (method: string, body: string, request: IncomingMessage) => SlackApiMockResponse): Promise<{ close: () => Promise; url: string; }>; export declare function slackRequestBody(body: string): Record; export declare function slackBlocks(body: { blocks?: unknown; }): SlackTestBlock[]; export declare function bearerToken(request: IncomingMessage): string; export declare function readHttpBody(request: IncomingMessage): Promise; //# sourceMappingURL=slack-api.d.ts.map