export type ProjectRoot = { root: string; /** True when an existing `.jira-agent/project.yaml` was found at `root`. */ hasConfig: boolean; /** * The nearest enclosing repository, when there is one. Already found on the * way up; reported so workspace identity does not have to walk again. */ gitRoot?: string; }; /** * Nearest-ancestor search from `startDir`: * 1. the nearest `.jira-agent/project.yaml` - that directory is the root * 2. else the nearest `.git` - a FILE in a worktree/submodule counts just as * much as a directory, since `existsSync` doesn't care which * 3. else `startDir` itself, so JAM still boots outside any repo * * This is deliberately the nearest ancestor, not the outermost repo root - a * project nested inside a monorepo should not have JAM walk past its own * `.git` into the monorepo's. */ export declare function resolveProjectRoot(startDir?: string): ProjectRoot;