export type ParsedSource = { kind: "local"; path: string; } | { kind: "git"; url: string; subdir?: string; ref?: string; display: string; }; export type ResolvedSource = { dir: string; sha?: string; display: string; }; /** Parse `local path | git URL [//subdir] [?ref=rev]`. A local path WITH ?ref= * is a git source that clones from that path. */ export declare function parseSource(raw: string, baseDir: string): ParsedSource; /** * Resolve a parsed source to a local directory, plus the resolved sha for git * sources. One checkout per (url, ref) under cacheRoot: a sha entry never * refetches; a branch/tag/default entry re-fetches per call. */ export declare function resolveSource(parsed: ParsedSource, opts?: { cacheRoot?: string; }): ResolvedSource;