import type { SpecItem, SpecSource } from './types.js'; export interface SpecDomainEntry { /** The domain directory name. */ domain: string; /** `//spec.md`, joined the way callers joined it before. */ specPath: string; } /** * The domain directories of a specs folder, in `readdir` order, each with its `spec.md` path. * Throws when the folder cannot be listed; each caller keeps its own policy for that, and its own * filters (structural domains, confinement), so its output is unchanged. */ export declare function readSpecDomainEntries(specsDir: string): Promise; /** * Every entry name in a specs folder, in `readdir` order, files and links included. For the listers * that check `/spec.md` themselves; throws when the folder cannot be listed. */ export declare function readSpecFolderNames(specsDir: string): Promise; /** * Every `spec.md` at or below `dir`, at most `maxDepth` folders down, skipping dot-folders, in * `readdir` order. A folder that cannot be listed adds nothing. */ export declare function findNestedSpecFiles(dir: string, maxDepth: number, depth?: number): Promise; /** Requirements and scenarios of one spec, by heading, outside code fences. */ export declare function parseOpenSpecItems(content: string, file: string, group: string): SpecItem[]; /** Whether markdown text has a requirement heading outside code fences. */ export declare function hasRequirementHeading(content: string): boolean; export interface DetectedOpenSpecRoot { /** The OpenSpec root, relative to the project root (`openspecPath`). `.` is a bare `specs/`. */ root: string; /** `/specs`, relative to the project root. */ specsRel: string; /** Count of `*.md` files beneath the specs folder. */ count: number; } /** * An existing OpenSpec corpus at one of the default roots, or null. `openspec/specs` with any * `*.md` counts; `docs/specs` and a bare `specs/` count only when a spec there has a * `### Requirement:` heading. */ export declare function detectOpenSpecRoot(rootPath: string): Promise; export declare const openspecSource: SpecSource; //# sourceMappingURL=openspec.d.ts.map