/** * Project ID Detection * * Detects a unique project identifier for lock scoping. * Used when locking.concurrencyScope=project to ensure * multiple directories (worktrees, clones) share the same lock. */ /** * Get project ID from git remote * * Tries to extract project name from git remote URL. * Works for GitHub, GitLab, Bitbucket, and other git hosts. * * @returns Project ID or null */ export declare function getProjectIdFromGit(): string | null; /** * Get project ID from package.json * * Extracts the "name" field from package.json. * Removes scope prefix (e.g., @scope/package → package). * * @param cwd - Directory to check (defaults to process.cwd()) * @returns Project ID or null */ export declare function getProjectIdFromPackageJson(cwd?: string): string | null; /** * Detect project ID with fallback chain * * Detection priority: * 1. Git remote URL (e.g., github.com/user/repo → repo) * 2. package.json name field (removes scope prefix) * 3. null (no detection possible) * * @param cwd - Directory to check (defaults to process.cwd()) * @returns Detected project ID or null */ export declare function detectProjectId(cwd?: string): string | null; //# sourceMappingURL=project-id.d.ts.map