import type { ParsedCustomCommand } from '../types/index.js';
/**
 * Parse a markdown file with optional YAML frontmatter
 */
export declare function parseCommandFile(filePath: string): ParsedCustomCommand;
/**
 * Parse a single `parameters:` entry. An entry is a positional name, with an
 * optional inline default after `=`:
 *
 *   "pr_number"            -> {name: 'pr_number', defaultValue: ''}
 *   "base=origin/main"     -> {name: 'base', defaultValue: 'origin/main'}
 *
 * The default is everything after the first `=`, so values may themselves
 * contain `=`. A defaulted parameter is the optional form: omit the argument
 * and the default is substituted instead of an empty string.
 */
export declare function parseCommandParameterSpec(spec: string): {
    name: string;
    defaultValue: string;
};
/**
 * Replace template variables in command content
 */
export declare function substituteTemplateVariables(content: string, variables: Record<string, string>): string;
//# sourceMappingURL=parser.d.ts.map