/** * VCS provider auto-detection from git remote URL. * * Examines the `origin` remote URL to determine whether the repository * is hosted on GitHub or GitLab. Returns `undefined` for unknown hosts * (e.g. self-hosted instances), so callers can fall back to explicit * configuration or a default provider. */ import type { VcsProviderType } from '../../core/models/vcs-types.js'; export { VCS_PROVIDER_TYPES } from '../../core/models/vcs-types.js'; export type { VcsProviderType } from '../../core/models/vcs-types.js'; /** * Get the hostname of the `origin` remote URL. * * @param cwd - Working directory for the git command * @returns hostname string or `undefined` if unavailable */ export declare function getRemoteHostname(cwd: string): string | undefined; /** * Get repository identifiers that must not be sent to an automatic router. * * Both the full owner/group path and the repository basename are returned so * routing text such as "owner/private-repo" and "private-repo" can be redacted. */ export declare function getRemoteRepositoryIdentifiers(cwd: string): string[]; /** * Detect VCS provider from the `origin` remote URL. * * @returns `'github'` | `'gitlab'` | `undefined` */ export declare function detectVcsProvider(cwd?: string): VcsProviderType | undefined; //# sourceMappingURL=detect.d.ts.map