/** * Error handling utilities for the Slack connector * * Provides Slack-specific error classification that builds on * the shared error handling infrastructure from @herdctl/chat. */ import { type ClassifiedError } from "@herdctl/chat"; import type { SlackConnectorLogger } from "./types.js"; export { type ClassifiedError, ErrorCategory, USER_ERROR_MESSAGES } from "@herdctl/chat"; /** * Classify a Slack-specific error for appropriate handling * * This function provides Slack-specific error classification patterns. */ export declare function classifyError(error: Error): ClassifiedError; /** * Execute a function safely, catching and logging errors * * Wrapper around @herdctl/chat's safeExecute that accepts SlackConnectorLogger. */ export declare function safeExecute(fn: () => Promise, logger: SlackConnectorLogger, context: string): Promise; /** * Execute a function safely and reply with error message on failure * * Wrapper around @herdctl/chat's safeExecuteWithReply that accepts SlackConnectorLogger * and uses the Slack-specific classifyError function. */ export declare function safeExecuteWithReply(fn: () => Promise, reply: (content: string) => Promise, logger: SlackConnectorLogger, context: string): Promise; //# sourceMappingURL=error-handler.d.ts.map