/** * Discovery of BABYSITTER.md files from a starting directory up to the git repo root. * * Walks the directory hierarchy upward, collecting BABYSITTER.md files (case-insensitive) * at each level, and returns them sorted from repo root to leaf. * * @module prompts/babysitterMdDiscovery */ /** A discovered BABYSITTER.md file with its content and location metadata. */ export interface BabysitterMdFile { /** Absolute file path */ filePath: string; /** Content of the file */ content: string; /** Path relative to the repo root (forward-slash separated) */ relativePath: string; } /** * Finds the git repository root by walking upward from `startDir` looking for * a `.git` directory or file. * * @param startDir - The directory to start searching from. * @returns The absolute path to the repo root, or `undefined` if not inside a git repo. */ export declare function findGitRoot(startDir: string): string | undefined; /** * Discovers BABYSITTER.md files from `startDir` upward to the git repo root. * * At each directory level the function reads directory entries and performs a * case-insensitive match against "babysitter.md". Results are returned sorted * from repo root to leaf (outermost first). * * @param startDir - The directory to start searching from. Defaults to `process.cwd()`. * @returns An array of discovered files sorted root-to-leaf, or an empty array * if not inside a git repo or no files are found. */ export declare function discoverBabysitterMdFiles(startDir?: string): BabysitterMdFile[]; //# sourceMappingURL=babysitterMdDiscovery.d.ts.map