import { Context, Effect, Layer, Option } from "effect"; import { type RepositoryHostKind } from "../domain/repo.ts"; import { GitHubCli, type GitHubCliResult } from "./gh.ts"; import { GitLabCli, type GitLabCliResult } from "./glab.ts"; export type HostCommandResult = GitHubCliResult | GitLabCliResult; export interface HostCloneParams { readonly cwd: string; readonly input: string; readonly target: string; } export interface HostReleaseParams { readonly input: string; readonly release: string; } export interface RepositoryHostInfo { readonly kind: RepositoryHostKind; readonly host: string; readonly path: string; readonly name: string; } export interface RepositoryHostsShape { readonly clone: (params: HostCloneParams) => Effect.Effect, never>; readonly defaultBranch: (input: string) => Effect.Effect, never>; readonly identify: (input: string) => Effect.Effect, never>; readonly releaseTag: (params: HostReleaseParams) => Effect.Effect, never>; } declare const RepositoryHosts_base: Context.ServiceClass; export declare class RepositoryHosts extends RepositoryHosts_base { } export declare const RepositoryHostsLive: Layer.Layer; export {}; //# sourceMappingURL=repository-hosts.d.ts.map