import { Context, Effect, Layer, Option } from "effect"; import { GitHubCliMissing, GitHubCliUnauthenticated, GitHubOrgNotFound } from "../domain/errors.ts"; import { GitHubCli } from "./gh.ts"; import type { RepoMeta, UserIdentity } from "./local-state.ts"; export type RepoType = "own" | "fork" | "upstream" | "unknown" | "non-github"; export interface RepoTypeInput { readonly url: string; readonly user: UserIdentity; readonly meta: Option.Option; } export declare const classifyRepo: ({ url, user, meta }: RepoTypeInput) => RepoType; export declare const fetchUserIdentity: () => Effect.Effect<{ schemaVersion: number; fetchedAt: string; login: string; orgs: string[]; }, GitHubCliMissing | GitHubCliUnauthenticated | GitHubOrgNotFound, GitHubCli>; export declare const fetchRepoMeta: ({ ownerName }: { readonly ownerName: string; }) => Effect.Effect<{ fetchedAt: string; isFork: boolean; parent: string | null; owner: string; visibility: string; }, GitHubCliMissing | GitHubCliUnauthenticated | GitHubOrgNotFound, GitHubCli>; export interface GitHubRepoMetaShape { readonly user: () => Effect.Effect; readonly repo: (params: { readonly ownerName: string; }) => Effect.Effect; } declare const GitHubRepoMeta_base: Context.ServiceClass; export declare class GitHubRepoMeta extends GitHubRepoMeta_base { } export declare const GitHubRepoMetaLive: Layer.Layer; export {}; //# sourceMappingURL=github-repo-meta.d.ts.map