export interface RepoInfo { owner: string; name: string; } export type ExecResult = { stdout: string; }; export type ExecFn = (command: string, options: { cwd: string; }) => Promise; /** * Run `git config --get remote.origin.url` in `cwd` and parse the result. * Returns null if the command fails, output is empty, or the URL doesn't * match a recognized GitHub form. */ export declare function detectRepo(cwd: string, execFn?: ExecFn): Promise; /** * Parse a git remote URL into { owner, name }. Handles: * - https://github.com/owner/repo(.git)? * - git@github.com:owner/repo(.git)? * - ssh://git@github.com/owner/repo(.git)? * * Returns null if the URL doesn't match a known form, or owner/name are * missing. Strips a trailing ".git" if present. */ export declare function parseGitUrl(raw: string): RepoInfo | null; //# sourceMappingURL=repo-detect.d.ts.map