/** Check whether a directory is a git repository (has `.git` subdir or file). */ export declare function isGitRepo(dir: string): boolean; /** Read a git repo's primary remote URL (origin, then the first remote). Returns null if none. */ export declare function getRemoteUrl(repoDir: string): string | null; /** Derive a repo slug from a clone URL. `git@github.com:foo/bar.git` or `https://.../bar` → `bar`. */ export declare function slugFromUrl(url: string): string; /** Detect whether a string looks like a git URL (http(s), ssh, or git@). */ export declare function looksLikeGitUrl(s: string): boolean; /** Clone a git URL into `destDir`. Throws on failure. Returns the absolute path. */ export declare function cloneRepo(url: string, destDir: string): string; /** Best-effort primary language detection from common manifest files. */ export declare function detectLanguage(dir: string): string | undefined;