import { Effect, Option } from "effect"; import { RepoNameInferenceFailed } from "./errors.ts"; export interface GitHubRepository { readonly owner: string; readonly name: string; readonly nameWithOwner: string; } export type RepositoryHostKind = "github" | "gitlab" | "bitbucket" | "codeberg" | "sourcehut" | "gitea" | "forgejo" | "generic"; export interface HostedRepository { readonly kind: RepositoryHostKind; readonly host: string; readonly name: string; readonly path: string; readonly cloneSpec: string; readonly nameWithOwner?: string; } export interface RepositoryTargetInput { readonly ref: Option.Option; readonly url: string; } export declare const repositoryTargetFromInput: (input: string) => RepositoryTargetInput | null; export declare const normalizeRepoUrl: (input: string) => string; export declare const hostedRepoFromInput: (input: string) => HostedRepository | null; export declare const githubRepoFromInput: (input: string) => GitHubRepository | null; export declare const inferRepoName: (url: string) => Effect.Effect | Effect.Effect; //# sourceMappingURL=repo.d.ts.map