import type { Skill } from "../skill/types.js"; import type { DetectOptions, WorkspaceContext } from "./types.js"; /** A discovery error — a skill that was found but failed to parse. */ export interface DiscoveryError { path: string; reason: unknown; } /** Result of skill discovery: parsed skills and any parse errors. */ export interface DiscoveryResult { skills: Skill[]; errors: DiscoveryError[]; context: WorkspaceContext; } /** * Discover and parse all skills under `rootPath`. * * Combines `detectWorkspaceContext` + `parseSkill` into a single call. * * @param rootPath - Directory to scan for skills. * @param options - Optional workspace detection options. * @returns Parsed skills, parse errors, and the raw workspace context. * @throws ENOENT if rootPath does not exist; ENOTDIR if it is not a directory. */ export declare function discoverSkills(rootPath: string, options?: DetectOptions): Promise; //# sourceMappingURL=discover.d.ts.map