/** * @fileoverview Internal scanner helpers for primitive-registry.ts. * Extracted to keep primitive-registry.ts under 500 LOC. */ import type { PrimitiveEntry } from "./primitive-registry.js"; /** * Parses a primitive .md file with YAML frontmatter into a PrimitiveEntry. * * @param filePath - Absolute path to the .md file. * @param type - The primitive type. * @param name - The primitive name (filename without extension or directory name). * @returns A PrimitiveEntry or null if parsing fails. */ export declare function parsePrimitiveFile(filePath: string, type: "agent" | "skill" | "command" | "tool" | "rule", name: string): Promise; /** * Scans .opencode/agents/ for .md files and adds them to the primitives map. */ export declare function scanAgents(root: string, primitives: Map): Promise; /** * Scans .opencode/commands/ for .md files and adds them to the primitives map. */ export declare function scanCommands(root: string, primitives: Map): Promise; /** * Scans .opencode/skills/{dir}/SKILL.md for skill files. */ export declare function scanSkills(root: string, primitives: Map): Promise; //# sourceMappingURL=primitive-scanners.d.ts.map