/** * @fileoverview Recover a skill's GitHub source from its `.git/config` origin. * @module @skillsmith/core/provenance/git-config * @see SMI-5407 * * Offline only. No git binary, no network: we parse the INI-style config file * directly. Normalizes both scp-like (`git@github.com:owner/repo.git`) and URL * (`https://github.com/owner/repo.git`) remotes. Non-github hosts return null. */ import type { RecoveredSource } from './types.js'; /** * Normalize a raw git remote URL into a canonical {@link RecoveredSource}. * Returns null for non-github hosts or unparseable shapes. */ export declare function normalizeGitHubRemote(rawUrl: string): RecoveredSource | null; /** * Read `/.git/config` and recover the origin remote's GitHub source. * Returns null when the file is missing, has no origin url, or the remote is * not a github.com repository. */ export declare function parseGitConfigRemote(skillDir: string): RecoveredSource | null; //# sourceMappingURL=git-config.d.ts.map