import { Effect } from "effect"; import { Command } from "effect/unstable/cli"; import { InkRenderFailed } from "../domain/errors.ts"; import { type ForkMode } from "../domain/fork-mode.ts"; import { type VendoredRepo } from "../domain/vendor-state.ts"; import { ProjectFiles } from "../project/service.ts"; import { ProjectSurfaces, type ProjectSurfaceReport } from "../project/surfaces.ts"; import { type RepoType } from "../services/github-repo-meta.ts"; import { LocalState } from "../services/local-state.ts"; import type { ToolIgnoreReport } from "../tool-ignores/common.ts"; import { ToolIgnores } from "../tool-ignores/service.ts"; export interface DoctorCommandParams { readonly fix: boolean; readonly json: boolean; } export interface ForkModeReport { readonly status: "ok" | "warn" | "info" | "skipped"; readonly mode: ForkMode | undefined; readonly isFork: boolean; readonly parentNameWithOwner: string | undefined; readonly message: string; } export interface ComputeForkModeReportParams { readonly cwd: string; readonly repos: ReadonlyArray; } export declare const computeForkModeReport: ({ cwd, repos }: ComputeForkModeReportParams) => Effect.Effect<{ status: "skipped"; mode: ForkMode | undefined; isFork: false; parentNameWithOwner: undefined; message: string; } | { status: "info"; mode: undefined; isFork: true; parentNameWithOwner: string | undefined; message: string; } | { status: "warn"; mode: "personal"; isFork: true; parentNameWithOwner: string | undefined; message: string; } | { status: "ok"; mode: "personal" | "contribute"; isFork: true; parentNameWithOwner: string | undefined; message: string; }, never, import("../app/runtime.ts").RuntimeConfig | import("../services/gh.ts").GitHubCli | import("../services/git.ts").Git>; export interface DoctorReportData { readonly cwd: string; readonly agentFiles: ReadonlyArray; readonly editorFiles: ReadonlyArray; readonly repositoryFiles: ReadonlyArray; readonly repos: ReadonlyArray; readonly repoTypes: Record; readonly toolReports: ReadonlyArray; readonly forkMode: ForkModeReport; readonly version: string; } export interface FixDoctorParams { readonly cwd: string; readonly repos: ReadonlyArray; } export declare const fixDoctor: ({ cwd, repos }: FixDoctorParams) => Effect.Effect; export declare const doctorImpl: ({ fix, json }: DoctorCommandParams) => Effect.Effect; export declare const doctorCmd: Command.Command<"doctor", { readonly fix: boolean; readonly json: boolean; }, {}, import("../domain/errors.ts").NotGitRepository | (import("../domain/errors.ts").GitCommandFailed | InkRenderFailed | import("../domain/errors.ts").GitMetadataFailed | import("effect/PlatformError").PlatformError), import("../app/runtime.ts").RuntimeConfig | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../services/git-metadata.ts").GitMetadata | import("../services/gh.ts").GitHubCli | import("../services/git.ts").Git | LocalState | ToolIgnores | ProjectFiles | ProjectSurfaces>; //# sourceMappingURL=doctor.d.ts.map