import { z } from 'zod'; import type { SkipReason } from '../../../types'; import type { PackageDependency } from '../types'; export interface BasePackageDep extends PackageDependency { depType: string; depName: string; } type BasePackageDepMergeKeys = Extract; export interface MergePackageDep extends BasePackageDep { bazelDepMergeFields: BasePackageDepMergeKeys[]; } export interface OverridePackageDep extends BasePackageDep { bazelDepSkipReason: SkipReason; } export type BazelModulePackageDep = BasePackageDep | OverridePackageDep | MergePackageDep; export declare function bazelModulePackageDepToPackageDependency(bmpd: BazelModulePackageDep): PackageDependency; export declare const RuleToBazelModulePackageDep: z.ZodUnion<[z.ZodEffects; isComplete: z.ZodBoolean; children: z.ZodObject<{ rule: z.ZodObject<{ type: z.ZodLiteral<"string">; isComplete: z.ZodLiteral; value: z.ZodLiteral<"bazel_dep">; }, "strip", z.ZodTypeAny, { type: "string"; value: "bazel_dep"; isComplete: true; }, { type: "string"; value: "bazel_dep"; isComplete: true; }>; name: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; version: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; }, "strip", z.ZodTypeAny, { name: { type: "string"; value: string; isComplete: true; }; version: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "bazel_dep"; isComplete: true; }; }, { name: { type: "string"; value: string; isComplete: true; }; version: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "bazel_dep"; isComplete: true; }; }>; }, "strip", z.ZodTypeAny, { type: "record"; children: { name: { type: "string"; value: string; isComplete: true; }; version: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "bazel_dep"; isComplete: true; }; }; isComplete: boolean; }, { type: "record"; children: { name: { type: "string"; value: string; isComplete: true; }; version: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "bazel_dep"; isComplete: true; }; }; isComplete: boolean; }>, BasePackageDep, { type: "record"; children: { name: { type: "string"; value: string; isComplete: true; }; version: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "bazel_dep"; isComplete: true; }; }; isComplete: boolean; }>, z.ZodEffects; isComplete: z.ZodBoolean; children: z.ZodObject<{ rule: z.ZodObject<{ type: z.ZodLiteral<"string">; isComplete: z.ZodLiteral; value: z.ZodLiteral<"git_override">; }, "strip", z.ZodTypeAny, { type: "string"; value: "git_override"; isComplete: true; }, { type: "string"; value: "git_override"; isComplete: true; }>; module_name: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; remote: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; commit: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; }, "strip", z.ZodTypeAny, { commit: { type: "string"; value: string; isComplete: true; }; remote: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "git_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }, { commit: { type: "string"; value: string; isComplete: true; }; remote: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "git_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }>; }, "strip", z.ZodTypeAny, { type: "record"; children: { commit: { type: "string"; value: string; isComplete: true; }; remote: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "git_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }, { type: "record"; children: { commit: { type: "string"; value: string; isComplete: true; }; remote: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "git_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }>, OverridePackageDep, { type: "record"; children: { commit: { type: "string"; value: string; isComplete: true; }; remote: { type: "string"; value: string; isComplete: true; }; rule: { type: "string"; value: "git_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }>, z.ZodEffects; isComplete: z.ZodBoolean; children: z.ZodObject<{ rule: z.ZodObject<{ type: z.ZodLiteral<"string">; isComplete: z.ZodLiteral; value: z.ZodLiteral<"single_version_override">; }, "strip", z.ZodTypeAny, { type: "string"; value: "single_version_override"; isComplete: true; }, { type: "string"; value: "single_version_override"; isComplete: true; }>; module_name: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; version: z.ZodOptional; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>>; registry: z.ZodOptional; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>>; }, "strip", z.ZodTypeAny, { rule: { type: "string"; value: "single_version_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; version?: { type: "string"; value: string; isComplete: true; } | undefined; registry?: { type: "string"; value: string; isComplete: true; } | undefined; }, { rule: { type: "string"; value: "single_version_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; version?: { type: "string"; value: string; isComplete: true; } | undefined; registry?: { type: "string"; value: string; isComplete: true; } | undefined; }>; }, "strip", z.ZodTypeAny, { type: "record"; children: { rule: { type: "string"; value: "single_version_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; version?: { type: "string"; value: string; isComplete: true; } | undefined; registry?: { type: "string"; value: string; isComplete: true; } | undefined; }; isComplete: boolean; }, { type: "record"; children: { rule: { type: "string"; value: "single_version_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; version?: { type: "string"; value: string; isComplete: true; } | undefined; registry?: { type: "string"; value: string; isComplete: true; } | undefined; }; isComplete: boolean; }>, BasePackageDep, { type: "record"; children: { rule: { type: "string"; value: "single_version_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; version?: { type: "string"; value: string; isComplete: true; } | undefined; registry?: { type: "string"; value: string; isComplete: true; } | undefined; }; isComplete: boolean; }>, z.ZodEffects; isComplete: z.ZodBoolean; children: z.ZodObject<{ rule: z.ZodObject<{ type: z.ZodLiteral<"string">; isComplete: z.ZodLiteral; value: z.ZodEnum<["archive_override", "local_path_override"]>; }, "strip", z.ZodTypeAny, { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }, { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }>; module_name: z.ZodObject<{ type: z.ZodLiteral<"string">; value: z.ZodString; isComplete: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: "string"; value: string; isComplete: true; }, { type: "string"; value: string; isComplete: true; }>; }, "strip", z.ZodTypeAny, { rule: { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }, { rule: { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }>; }, "strip", z.ZodTypeAny, { type: "record"; children: { rule: { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }, { type: "record"; children: { rule: { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }>, OverridePackageDep, { type: "record"; children: { rule: { type: "string"; value: "archive_override" | "local_path_override"; isComplete: true; }; module_name: { type: "string"; value: string; isComplete: true; }; }; isComplete: boolean; }>]>; export declare function processModulePkgDeps(packageDeps: BazelModulePackageDep[]): PackageDependency[]; export declare function toPackageDependencies(packageDeps: BazelModulePackageDep[]): PackageDependency[]; export {};