/** * Shared source provider factory for git hosting platforms (GitHub, GitLab, Bitbucket). * * Wraps existing clone + discover logic into the `SourceHostProvider` interface. * * @experimental This API is unstable and may change without notice. * @packageDocumentation */ import * as FileSystem from "effect/FileSystem"; import * as Path from "effect/Path"; import type * as Scope from "effect/Scope"; import type { SourceHostProvider, GitHubSource, GitLabSource, BitbucketSource, AzureReposSource, GitHostingSourceHost } from "../../sources/index.js"; /** * Creates a `SourceHostProvider` for a git hosting platform. * * Constructed with a `SourceHost` that provides the host URL. * The `match` method checks if a URL's hostname matches the configured host. * The `find` implementation clones the repository into a scoped temp directory, * discovers skills via the 3-phase algorithm, and enriches each with its git * tree SHA. * * @experimental This API is unstable and may change without notice. */ export declare const createGitHostingSourceHostProvider: (host: Extract) => SourceHostProvider; /** Build a clone URL from a git hosting source (internal helper). */ export declare const buildCloneUrlForSource: (source: GitHubSource | GitLabSource | BitbucketSource | AzureReposSource) => string; //# sourceMappingURL=git-hosting.d.ts.map