/** * Message formatting utilities for Slack * * Provides utilities for: * - Converting standard markdown to Slack's mrkdwn format * - Creating context attachments with color coding * * Note: Message splitting utilities (findSplitPoint, splitMessage, needsSplit, * truncateMessage, formatCodeBlock) are provided by @herdctl/chat. */ export { DEFAULT_MESSAGE_DELAY_MS, findSplitPoint, formatCodeBlock, type MessageSplitOptions, MIN_CHUNK_SIZE, needsSplit, type SplitResult, splitMessage, truncateMessage, } from "@herdctl/chat"; /** * Slack's practical maximum message length * * Hard limit is ~40K, but messages above ~4K become unwieldy in threads. */ export declare const SLACK_MAX_MESSAGE_LENGTH = 4000; /** * Context attachment for Slack messages */ export interface ContextAttachment { footer: string; color: string; } /** * Convert standard markdown to Slack's mrkdwn format * * Uses slackify-markdown (Unified/Remark-based AST parser) for robust * conversion that handles edge cases regex approaches miss. */ export declare function markdownToMrkdwn(text: string): string; /** * Create a context attachment for Slack messages * * Used to display context usage information in a color-coded footer. */ export declare function createContextAttachment(contextPercent: number): ContextAttachment; /** * Escape Slack mrkdwn characters in text */ export declare function escapeMrkdwn(text: string): string; //# sourceMappingURL=formatting.d.ts.map