import type { CustomSlashCommandConfig } from "../types/index.js"; interface ParsedMarkdownFile { content: string; config?: CustomSlashCommandConfig; } /** * Parse YAML frontmatter from markdown content */ export declare function parseFrontmatter(content: string): { frontmatter?: Record; content: string; }; /** * Parse markdown file and extract config and content */ export declare function parseMarkdownFile(filePath: string): ParsedMarkdownFile; /** * Parse and execute bash commands in markdown content */ export interface BashCommandResult { command: string; output: string; exitCode: number; } export declare function parseBashCommands(content: string): { commands: string[]; processedContent: string; }; /** * Truncate output if it exceeds the size limit. * Writes to a temp file and returns a preview + file path if truncated. */ export declare function truncateOutput(output: string): string; /** * Replace bash command placeholders with their outputs. * Uses function replacer to avoid $$, $&, $' corruption in shell output. * Handles both inline (!`cmd`) and block (```! cmd ```) syntax. */ export declare function replaceBashCommandsWithOutput(content: string, results: BashCommandResult[]): string; /** * Execute bash commands and return results */ export declare function executeBashCommands(commands: string[], workdir: string, timeout?: number): Promise; export {};