import type { CustomToolMetadata } from '../types/custom-tools.js';
import type { SkillTrigger } from '../types/skills.js';
export interface ParsedCustomToolFile {
    metadata: CustomToolMetadata;
    body: string;
    /**
     * Event subscriptions declared in the file's frontmatter, if any. Target
     * is implicit (the tool itself) and resolved by the skill registrar.
     */
    subscribe?: SkillTrigger[];
}
export declare class CustomToolParseError extends Error {
    constructor(message: string);
}
/**
 * Parse a custom tool markdown file into validated metadata and a script body.
 * Throws `CustomToolParseError` on any structural problem; the loader catches
 * these and logs them so a single bad file doesn't break the rest.
 */
export declare function parseCustomToolFile(filePath: string): ParsedCustomToolFile;
//# sourceMappingURL=parser.d.ts.map