export interface ParsedRepo { owner: string; repo: string; } export interface NormalizedRepo { /** `owner/repo` format — used by templates */ shorthand: string; /** `github.com/owner/repo` format — used by config schema */ configFormat: string; } /** * Parse a repo URL in any supported format into `{ owner, repo }`. * Throws a descriptive error if the format is unrecognizable. */ export declare function parseRepoUrl(input: string): ParsedRepo; /** Returns `owner/repo` — the shorthand format used by templates. */ export declare function toShorthand(parsed: ParsedRepo): string; /** Returns `github.com/owner/repo` — the format used in config schema. */ export declare function toConfigFormat(parsed: ParsedRepo): string; /** Parse any supported repo URL and return both shorthand and config formats. */ export declare function normalizeRepoUrl(input: string): NormalizedRepo; /** * Detect the primary repository from the `origin` remote. * Returns normalized `owner/repo` shorthand, or `null` if not detectable. */ export declare function detectPrimaryRepo(cwd: string): string | null; /** * Detect the git repository root directory. * Returns the absolute path, or `null` if not inside a git repo. */ export declare function detectGitRoot(cwd: string): string | null; //# sourceMappingURL=repo-utils.d.ts.map