import { WebhookEventType, WebhookSlackMeta } from "./WebhookDeliveryService.js";

//#region src/domains/run/services/slackBlockKit.d.ts
/** Slack Incoming Webhook URLs (chat.postMessage-compatible). */
declare const SLACK_INCOMING_WEBHOOK_URL_PREFIX = "https://hooks.slack.com/";
declare function isSlackIncomingWebhookUrl(url: string): boolean;
interface SlackContext {
  tenantId: string;
  projectId: string;
  agentId: string;
  manageUiBaseUrl: string;
}
/** Payload for Manage UI "Test" deliveries to Slack incoming webhooks. */
declare function buildTestSlackPayload(envelope: Record<string, unknown>, ctx: SlackContext): Record<string, unknown>;
declare function buildSlackPayload(eventType: WebhookEventType, envelope: Record<string, unknown>, ctx: SlackContext, meta?: WebhookSlackMeta): Record<string, unknown>;
//#endregion
export { SLACK_INCOMING_WEBHOOK_URL_PREFIX, SlackContext, buildSlackPayload, buildTestSlackPayload, isSlackIncomingWebhookUrl };