import { Context, Effect, Layer, Option, type PlatformError } from "effect"; import { ChildProcessSpawner } from "effect/unstable/process"; import { RuntimeConfig } from "../app/runtime.ts"; import { type GitHubRepository } from "../domain/repo.ts"; export interface GitHubCliResult { readonly stdout: string; readonly stderr: string; readonly exitCode: number; } export interface GitHubCliOptions { readonly cwd?: string; } export interface GitHubCloneParams { readonly cwd: string; readonly repo: GitHubRepository; readonly target: string; } export interface GitHubCloneFromInputParams { readonly cwd: string; readonly input: string; readonly target: string; } export interface GitHubCliShape { readonly exec: (args: ReadonlyArray, options?: GitHubCliOptions) => Effect.Effect; } declare const GitHubCli_base: Context.ServiceClass; export declare class GitHubCli extends GitHubCli_base { } export declare const GitHubCliLive: Layer.Layer; export declare const gh: (args: ReadonlyArray, options?: GitHubCliOptions) => Effect.Effect; export declare const ghDefaultBranch: (repo: GitHubRepository) => Effect.Effect, PlatformError.PlatformError, RuntimeConfig | GitHubCli>; export declare const ghDefaultBranchFromInput: (input: string) => Effect.Effect, never, never> | Effect.Effect, PlatformError.PlatformError, RuntimeConfig | GitHubCli>; export declare const ghRepoClone: ({ cwd, repo, target }: GitHubCloneParams) => Effect.Effect; export declare const ghRepoCloneFromInput: ({ cwd, input, target }: GitHubCloneFromInputParams) => Effect.Effect, never, never> | Effect.Effect, PlatformError.PlatformError, RuntimeConfig | GitHubCli>; export {}; //# sourceMappingURL=gh.d.ts.map