import { z } from 'zod'; import type { PackageFileContent } from '../types'; import type { ComposerManagerData } from './types'; export declare const ComposerRepo: z.ZodObject<{ type: z.ZodLiteral<"composer">; /** * The regUrl is expected to be a base URL. GitLab composer repository installation guide specifies * to use a base URL containing packages.json. Composer still works in this scenario by determining * whether to add / remove packages.json from the URL. * * See https://github.com/composer/composer/blob/750a92b4b7aecda0e5b2f9b963f1cb1421900675/src/Composer/Repository/ComposerRepository.php#L815 */ url: z.ZodEffects; }, "strip", z.ZodTypeAny, { type: "composer"; url: string; }, { type: "composer"; url: string; }>; export type ComposerRepo = z.infer; export declare const GitRepo: z.ZodObject<{ type: z.ZodEffects, "git", "git" | "vcs">; url: z.ZodString; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "git"; url: string; name?: string | undefined; }, { type: "git" | "vcs"; url: string; name?: string | undefined; }>; export type GitRepo = z.infer; export declare const PathRepo: z.ZodObject<{ type: z.ZodLiteral<"path">; url: z.ZodString; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "path"; url: string; name?: string | undefined; }, { type: "path"; url: string; name?: string | undefined; }>; export type PathRepo = z.infer; export declare const PackageRepo: z.ZodObject<{ type: z.ZodLiteral<"package">; }, "strip", z.ZodTypeAny, { type: "package"; }, { type: "package"; }>; export declare const Repo: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"composer">; /** * The regUrl is expected to be a base URL. GitLab composer repository installation guide specifies * to use a base URL containing packages.json. Composer still works in this scenario by determining * whether to add / remove packages.json from the URL. * * See https://github.com/composer/composer/blob/750a92b4b7aecda0e5b2f9b963f1cb1421900675/src/Composer/Repository/ComposerRepository.php#L815 */ url: z.ZodEffects; }, "strip", z.ZodTypeAny, { type: "composer"; url: string; }, { type: "composer"; url: string; }>, z.ZodObject<{ type: z.ZodEffects, "git", "git" | "vcs">; url: z.ZodString; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "git"; url: string; name?: string | undefined; }, { type: "git" | "vcs"; url: string; name?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"path">; url: z.ZodString; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "path"; url: string; name?: string | undefined; }, { type: "path"; url: string; name?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"package">; }, "strip", z.ZodTypeAny, { type: "package"; }, { type: "package"; }>]>; export type Repo = z.infer; export declare const NamedRepo: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"composer">; /** * The regUrl is expected to be a base URL. GitLab composer repository installation guide specifies * to use a base URL containing packages.json. Composer still works in this scenario by determining * whether to add / remove packages.json from the URL. * * See https://github.com/composer/composer/blob/750a92b4b7aecda0e5b2f9b963f1cb1421900675/src/Composer/Repository/ComposerRepository.php#L815 */ url: z.ZodEffects; }, "strip", z.ZodTypeAny, { type: "composer"; url: string; }, { type: "composer"; url: string; }>, z.ZodObject<{ type: z.ZodEffects, "git", "git" | "vcs">; url: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "git"; url: string; name: string; }, { type: "git" | "vcs"; url: string; name: string; }>, z.ZodObject<{ type: z.ZodLiteral<"path">; url: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: "path"; url: string; name: string; }, { type: "path"; url: string; name: string; }>, z.ZodObject<{ type: z.ZodLiteral<"package">; }, "strip", z.ZodTypeAny, { type: "package"; }, { type: "package"; }>]>; export type NamedRepo = z.infer; declare const DisablePackagist: z.ZodObject<{ type: z.ZodLiteral<"disable-packagist">; }, "strip", z.ZodTypeAny, { type: "disable-packagist"; }, { type: "disable-packagist"; }>; export type DisablePackagist = z.infer; export declare const ReposRecord: z.ZodEffects, Record, Record>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], Record>; export type ReposRecord = z.infer; export declare const ReposArray: z.ZodEffects, ({ type: "composer"; url: string; } | { type: "git"; url: string; name?: string | undefined; } | { type: "path"; url: string; name?: string | undefined; } | { type: "package"; } | { type: "disable-packagist"; })[], any[]>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], any[]>; export type ReposArray = z.infer; export declare const Repos: z.ZodEffects, Record, Record>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], Record>, z.ZodEffects, ({ type: "composer"; url: string; } | { type: "git"; url: string; name?: string | undefined; } | { type: "path"; url: string; name?: string | undefined; } | { type: "package"; } | { type: "disable-packagist"; })[], any[]>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], any[]>]>>>, { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }, unknown>; export type Repos = z.infer; export declare const PackageFile: z.ZodEffects; config: z.ZodCatch; }, "strip", z.ZodTypeAny, { platform: { php: string; }; }, { platform: { php: string; }; }>>>; repositories: z.ZodEffects, Record, Record>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], Record>, z.ZodEffects, ({ type: "composer"; url: string; } | { type: "git"; url: string; name?: string | undefined; } | { type: "path"; url: string; name?: string | undefined; } | { type: "package"; } | { type: "disable-packagist"; })[], any[]>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], any[]>]>>>, { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }, unknown>; require: z.ZodCatch, Record, Record>>; 'require-dev': z.ZodCatch, Record, Record>>; }, "strip", z.ZodTypeAny, { require: Record; config: { platform: { php: string; }; } | null; repositories: { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }; 'require-dev': Record; type?: string | undefined; }, { type?: string | undefined; config?: unknown; repositories?: unknown; require?: unknown; 'require-dev'?: unknown; }>, { composerJsonType: string | undefined; config: { platform: { php: string; }; } | null; repositories: { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }; require: Record; requireDev: Record; }, { type?: string | undefined; config?: unknown; repositories?: unknown; require?: unknown; 'require-dev'?: unknown; }>; export type PackageFile = z.infer; export declare const Lockfile: z.ZodEffects; packages: z.ZodCatch, { name: string; version: string; }[], any[]>>; 'packages-dev': z.ZodCatch, { name: string; version: string; }[], any[]>>; }, "strip", z.ZodTypeAny, { packages: { name: string; version: string; }[]; 'packages-dev': { name: string; version: string; }[]; 'plugin-api-version'?: string | undefined; }, { 'plugin-api-version'?: string | undefined; packages?: unknown; 'packages-dev'?: unknown; }>, { pluginApiVersion: string | undefined; packages: { name: string; version: string; }[]; packagesDev: { name: string; version: string; }[]; }, { 'plugin-api-version'?: string | undefined; packages?: unknown; 'packages-dev'?: unknown; }>; export type Lockfile = z.infer; export declare const ComposerExtract: z.ZodEffects, { file: string; lockfileName: string; lockfile: string; }, { content: string; fileName: string; }>, z.ZodObject<{ file: z.ZodPipeline, z.ZodEffects; config: z.ZodCatch; }, "strip", z.ZodTypeAny, { platform: { php: string; }; }, { platform: { php: string; }; }>>>; repositories: z.ZodEffects, Record, Record>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], Record>, z.ZodEffects, ({ type: "composer"; url: string; } | { type: "git"; url: string; name?: string | undefined; } | { type: "path"; url: string; name?: string | undefined; } | { type: "package"; } | { type: "disable-packagist"; })[], any[]>, ({ type: "composer"; url: string; } | { type: "package"; } | { type: "git"; url: string; name: string; } | { type: "path"; url: string; name: string; } | { type: "disable-packagist"; })[], any[]>]>>>, { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }, unknown>; require: z.ZodCatch, Record, Record>>; 'require-dev': z.ZodCatch, Record, Record>>; }, "strip", z.ZodTypeAny, { require: Record; config: { platform: { php: string; }; } | null; repositories: { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }; 'require-dev': Record; type?: string | undefined; }, { type?: string | undefined; config?: unknown; repositories?: unknown; require?: unknown; 'require-dev'?: unknown; }>, { composerJsonType: string | undefined; config: { platform: { php: string; }; } | null; repositories: { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }; require: Record; requireDev: Record; }, { type?: string | undefined; config?: unknown; repositories?: unknown; require?: unknown; 'require-dev'?: unknown; }>>; lockfileName: z.ZodString; lockfile: z.ZodPipeline, z.ZodUnion<[z.ZodNull, z.ZodCatch>, z.ZodEffects; packages: z.ZodCatch, { name: string; version: string; }[], any[]>>; 'packages-dev': z.ZodCatch, { name: string; version: string; }[], any[]>>; }, "strip", z.ZodTypeAny, { packages: { name: string; version: string; }[]; 'packages-dev': { name: string; version: string; }[]; 'plugin-api-version'?: string | undefined; }, { 'plugin-api-version'?: string | undefined; packages?: unknown; 'packages-dev'?: unknown; }>, { pluginApiVersion: string | undefined; packages: { name: string; version: string; }[]; packagesDev: { name: string; version: string; }[]; }, { 'plugin-api-version'?: string | undefined; packages?: unknown; 'packages-dev'?: unknown; }>>>>]>>; }, "strip", z.ZodTypeAny, { file: { composerJsonType: string | undefined; config: { platform: { php: string; }; } | null; repositories: { registryUrls: string[] | null; gitRepos: Record; pathRepos: Record; }; require: Record; requireDev: Record; }; lockfile: { pluginApiVersion: string | undefined; packages: { name: string; version: string; }[]; packagesDev: { name: string; version: string; }[]; } | null; lockfileName: string; }, { file: string; lockfile: string; lockfileName: string; }>>, PackageFileContent | null, { content: string; fileName: string; }>; export type ComposerExtract = z.infer; export {};