import { Effect, FileSystem, Option, Path } from "effect"; import { Command } from "effect/unstable/cli"; import { RepositoryAliases } from "../aliases/service.ts"; import { IngraftConfig } from "../config/ingraft.ts"; import { InkRenderFailed, InvalidAddTargets, InvalidLocalOnlyStrategy, SubtreeAddFailed, UnsupportedVendorFilter, VendorPathAlreadyExists, VendorStrategyCommandFailed, VendoredRepoAlreadyExists, VersionResolutionFailed } from "../domain/errors.ts"; import { type VendorStrategy } from "../domain/vendor-strategy.ts"; import { PackageVersionSync, type PackageEcosystem } from "../package-sync/service.ts"; import { ProjectFiles } from "../project/service.ts"; import { CloudflareArtifacts } from "../services/cloudflare-artifacts.ts"; import { Jujutsu } from "../services/jujutsu.ts"; import { RepositoryHosts } from "../services/repository-hosts.ts"; export interface AddCommandParams { readonly repo: string; readonly ref: Option.Option; readonly tag: Option.Option; readonly release: Option.Option; readonly syncPackage: Option.Option; readonly cloudflareArtifact: boolean; readonly cloudflareArtifactDepth: Option.Option; readonly cloudflareArtifactName: Option.Option; readonly exclude: ReadonlyArray; readonly excludeDirs: ReadonlyArray; readonly excludeExtensions: ReadonlyArray; readonly include: ReadonlyArray; readonly includeDirs: ReadonlyArray; readonly maxFileSize: Option.Option; readonly prefix: Option.Option; readonly name: Option.Option; readonly strategy: VendorStrategy; readonly localOnly: boolean; } export interface AddManyCommandParams extends Omit { readonly repos: ReadonlyArray; readonly strategy: Option.Option; } export type AddTarget = { readonly _tag: "RepositoryTarget"; readonly input: string; readonly ref?: string; readonly url: string; } | { readonly _tag: "PackageTarget"; readonly ecosystem: PackageEcosystem; readonly input: string; readonly packageName: string; }; export declare const classifyAddTarget: (input: string) => AddTarget; export declare const addImpl: ({ cloudflareArtifact, cloudflareArtifactDepth, cloudflareArtifactName, exclude, excludeDirs, excludeExtensions, include, includeDirs, localOnly, maxFileSize, name, prefix, release, ref, repo, strategy, syncPackage, tag }: AddCommandParams) => Effect.Effect; export declare const addManyImpl: ({ repos, ...params }: AddManyCommandParams) => Effect.Effect; export declare const addCmd: Command.Command<"add", { readonly repos: readonly string[]; readonly ref: Option.Option; readonly tag: Option.Option; readonly release: Option.Option; readonly syncPackage: Option.Option; readonly cloudflareArtifact: boolean; readonly cloudflareArtifactDepth: Option.Option; readonly cloudflareArtifactName: Option.Option; readonly exclude: readonly string[]; readonly excludeDirs: readonly string[]; readonly excludeExtensions: readonly string[]; readonly include: readonly string[]; readonly includeDirs: readonly string[]; readonly maxFileSize: Option.Option; readonly prefix: Option.Option; readonly name: Option.Option; readonly strategy: Option.Option<"subtree" | "submodule" | "clone-ignore" | "cache-link">; readonly localOnly: boolean; }, {}, import("../domain/errors.ts").NotGitRepository | import("../domain/errors.ts").DirtyWorkingTree | import("../domain/errors.ts").RepoNameInferenceFailed | VendoredRepoAlreadyExists | VendorPathAlreadyExists | SubtreeAddFailed | VendorStrategyCommandFailed | import("../domain/errors.ts").VersionSelectorConflict | VersionResolutionFailed | import("../domain/errors.ts").PackageVersionSyncFailed | import("../domain/errors.ts").InvalidVendorFilter | UnsupportedVendorFilter | InvalidAddTargets | import("../domain/errors.ts").CloudflareArtifactsConfigMissing | import("../domain/errors.ts").CloudflareArtifactsRequestFailed | InvalidLocalOnlyStrategy | (import("../domain/errors.ts").GitCommandFailed | InkRenderFailed | import("../domain/errors.ts").GitMetadataFailed | import("effect/PlatformError").PlatformError), import("../app/runtime.ts").RuntimeConfig | FileSystem.FileSystem | Path.Path | IngraftConfig | RepositoryAliases | import("../services/git-metadata.ts").GitMetadata | RepositoryHosts | import("../services/git.ts").Git | PackageVersionSync | import("../services/local-state.ts").LocalState | ProjectFiles | CloudflareArtifacts | Jujutsu>; //# sourceMappingURL=add.d.ts.map