export type ExecGit = (args: string[], cwd: string) => string; export interface GitSourceDeps { env?: Record; execGit?: ExecGit; } export interface SourceMetadata { repo?: string; path?: string; gitSha?: string; } /** Parse a git remote URL (scp-like, ssh://, https://) to `owner/repo`. */ export declare function parseRepoFromRemoteUrl(url: string): string | undefined; /** `undefined` when nothing could be determined at all (the `source` key is then omitted). */ export declare function collectSourceMetadata(setDir: string, deps?: GitSourceDeps): SourceMetadata | undefined;