import type { DetectOptions, WorkspaceContext } from "./types.js"; /** * Detect the workspace context starting from `dir`. * * Uses a 4-step cascade: * * 1. **CWD check** — Does `dir` contain SKILL.md? * 2. **Parent walk** — Walk up to 10 parent dirs looking for SKILL.md. * 3. **Skills directories** — Check configured skill root dirs (default * `["skills"]`) plus `.github/skills/` if it exists. * 4. **Child scan** — Recursively scan children of `dir` for SKILL.md. * * Returns a `WorkspaceContext` with the appropriate `ContextType`. */ export declare function detectWorkspaceContext(dir: string, options?: DetectOptions): Promise; //# sourceMappingURL=detect.d.ts.map