import { z } from 'zod';
import type { ReleaseResult } from '../types';
export declare const MinifiedArray: z.ZodEffects<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, Record<string, unknown>[], Record<string, unknown>[]>;
export type MinifiedArray = z.infer<typeof MinifiedArray>;
export declare const ComposerRelease: z.ZodObject<{
    version: z.ZodString;
    homepage: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
    source: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        url: string;
    }, {
        url: string;
    }>>>>;
    time: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
    require: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
        php: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        php: string;
    }, {
        php: string;
    }>>>>;
}, z.UnknownKeysParam, z.ZodTypeAny, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}, {
    version: string;
    homepage?: unknown;
    source?: unknown;
    time?: unknown;
    require?: unknown;
}>;
export type ComposerRelease = z.infer<typeof ComposerRelease>;
export declare const ComposerReleases: z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, Record<string, unknown>[], Record<string, unknown>[]>, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}[], Record<string, unknown>[]>, z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodObject<{
    version: z.ZodString;
    homepage: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
    source: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
        url: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        url: string;
    }, {
        url: string;
    }>>>>;
    time: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
    require: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
        php: z.ZodString;
    }, "strip", z.ZodTypeAny, {
        php: string;
    }, {
        php: string;
    }>>>>;
}, z.UnknownKeysParam, z.ZodTypeAny, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}, {
    version: string;
    homepage?: unknown;
    source?: unknown;
    time?: unknown;
    require?: unknown;
}>>>>>, Record<string, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}>, unknown>, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}[], unknown>]>>;
export type ComposerReleases = z.infer<typeof ComposerReleases>;
export declare const ComposerPackagesResponse: z.ZodEffects<z.ZodEffects<z.ZodObject<{
    packageName: z.ZodString;
    packagesResponse: z.ZodObject<{
        packages: z.ZodRecord<z.ZodString, z.ZodUnknown>;
    }, "strip", z.ZodTypeAny, {
        packages: Record<string, unknown>;
    }, {
        packages: Record<string, unknown>;
    }>;
}, "strip", z.ZodTypeAny, {
    packageName: string;
    packagesResponse: {
        packages: Record<string, unknown>;
    };
}, {
    packageName: string;
    packagesResponse: {
        packages: Record<string, unknown>;
    };
}>, unknown, {
    packageName: string;
    packagesResponse: {
        packages: Record<string, unknown>;
    };
}>, {
    version: string;
    homepage?: string | null | undefined;
    source?: {
        url: string;
    } | null | undefined;
    time?: string | null | undefined;
    require?: {
        php: string;
    } | null | undefined;
}[], {
    packageName: string;
    packagesResponse: {
        packages: Record<string, unknown>;
    };
}>;
export type ComposerPackagesResponse = z.infer<typeof ComposerPackagesResponse>;
export declare function parsePackagesResponse(packageName: string, packagesResponse: unknown): ComposerReleases;
export declare function extractReleaseResult(...composerReleasesArrays: ComposerReleases[]): ReleaseResult | null;
export declare function extractDepReleases(composerReleases: unknown): ReleaseResult | null;
export declare function parsePackagesResponses(packageName: string, packagesResponses: unknown[]): ReleaseResult | null;
export declare const HashSpec: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
    sha256: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    sha256: string | null;
}, {
    sha256: string | null;
}>, {
    hash: string | null;
}, {
    sha256: string | null;
}>, z.ZodEffects<z.ZodObject<{
    sha1: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    sha1: string | null;
}, {
    sha1: string | null;
}>, {
    hash: string | null;
}, {
    sha1: string | null;
}>]>;
export type HashSpec = z.infer<typeof HashSpec>;
export declare const RegistryFile: z.ZodIntersection<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
    sha256: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    sha256: string | null;
}, {
    sha256: string | null;
}>, {
    hash: string | null;
}, {
    sha256: string | null;
}>, z.ZodEffects<z.ZodObject<{
    sha1: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    sha1: string | null;
}, {
    sha1: string | null;
}>, {
    hash: string | null;
}, {
    sha1: string | null;
}>]>, z.ZodObject<{
    key: z.ZodString;
}, "strip", z.ZodTypeAny, {
    key: string;
}, {
    key: string;
}>>;
export type RegistryFile = z.infer<typeof RegistryFile>;
export declare const PackagesResponse: z.ZodObject<{
    packages: z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, Record<string, unknown>[], Record<string, unknown>[]>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], Record<string, unknown>[]>, z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodObject<{
        version: z.ZodString;
        homepage: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        source: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
        }, {
            url: string;
        }>>>>;
        time: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        require: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            php: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            php: string;
        }, {
            php: string;
        }>>>>;
    }, z.UnknownKeysParam, z.ZodTypeAny, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }, {
        version: string;
        homepage?: unknown;
        source?: unknown;
        time?: unknown;
        require?: unknown;
    }>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }>, unknown>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], unknown>]>>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>, unknown>;
}, "strip", z.ZodTypeAny, {
    packages: Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>;
}, {
    packages?: unknown;
}>;
export type PackagesResponse = z.infer<typeof PackagesResponse>;
export declare const PackagistFile: z.ZodObject<{
    packages: z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, Record<string, unknown>[], Record<string, unknown>[]>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], Record<string, unknown>[]>, z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodObject<{
        version: z.ZodString;
        homepage: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        source: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
        }, {
            url: string;
        }>>>>;
        time: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        require: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            php: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            php: string;
        }, {
            php: string;
        }>>>>;
    }, z.UnknownKeysParam, z.ZodTypeAny, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }, {
        version: string;
        homepage?: unknown;
        source?: unknown;
        time?: unknown;
        require?: unknown;
    }>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }>, unknown>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], unknown>]>>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>, unknown>;
    providers: z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
        sha256: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha256: string | null;
    }, {
        sha256: string | null;
    }>, {
        hash: string | null;
    }, {
        sha256: string | null;
    }>, z.ZodEffects<z.ZodObject<{
        sha1: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha1: string | null;
    }, {
        sha1: string | null;
    }>, {
        hash: string | null;
    }, {
        sha1: string | null;
    }>]>>>>>, Record<string, {
        hash: string | null;
    } | {
        hash: string | null;
    }>, unknown>, {
        [k: string]: string | null;
    }, unknown>;
}, "strip", z.ZodTypeAny, {
    packages: Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>;
    providers: {
        [k: string]: string | null;
    };
}, {
    packages?: unknown;
    providers?: unknown;
}>;
export type PackagistFile = z.infer<typeof PackagistFile>;
export declare const RegistryMeta: z.ZodEffects<z.ZodEffects<z.ZodObject<{
    packages: z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodCatch<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, Record<string, unknown>[], Record<string, unknown>[]>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], Record<string, unknown>[]>, z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodObject<{
        version: z.ZodString;
        homepage: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        source: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            url: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            url: string;
        }, {
            url: string;
        }>>>>;
        time: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodString>>>;
        require: z.ZodOptional<z.ZodCatch<z.ZodNullable<z.ZodObject<{
            php: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            php: string;
        }, {
            php: string;
        }>>>>;
    }, z.UnknownKeysParam, z.ZodTypeAny, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }, {
        version: string;
        homepage?: unknown;
        source?: unknown;
        time?: unknown;
        require?: unknown;
    }>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }>, unknown>, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[], unknown>]>>>>>>, Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>, unknown>;
    providers: z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
        sha256: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha256: string | null;
    }, {
        sha256: string | null;
    }>, {
        hash: string | null;
    }, {
        sha256: string | null;
    }>, z.ZodEffects<z.ZodObject<{
        sha1: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha1: string | null;
    }, {
        sha1: string | null;
    }>, {
        hash: string | null;
    }, {
        sha1: string | null;
    }>]>>>>>, Record<string, {
        hash: string | null;
    } | {
        hash: string | null;
    }>, unknown>, {
        [k: string]: string | null;
    }, unknown>;
    includes: z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
        sha256: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha256: string | null;
    }, {
        sha256: string | null;
    }>, {
        hash: string | null;
    }, {
        sha256: string | null;
    }>, z.ZodEffects<z.ZodObject<{
        sha1: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha1: string | null;
    }, {
        sha1: string | null;
    }>, {
        hash: string | null;
    }, {
        sha1: string | null;
    }>]>>>>>, Record<string, {
        hash: string | null;
    } | {
        hash: string | null;
    }>, unknown>, {
        key: string;
        hash: string | null;
    }[], unknown>;
    "provider-includes": z.ZodEffects<z.ZodEffects<z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
        sha256: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha256: string | null;
    }, {
        sha256: string | null;
    }>, {
        hash: string | null;
    }, {
        sha256: string | null;
    }>, z.ZodEffects<z.ZodObject<{
        sha1: z.ZodNullable<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        sha1: string | null;
    }, {
        sha1: string | null;
    }>, {
        hash: string | null;
    }, {
        sha1: string | null;
    }>]>>>>>, Record<string, {
        hash: string | null;
    } | {
        hash: string | null;
    }>, unknown>, {
        key: string;
        hash: string | null;
    }[], unknown>;
    "providers-lazy-url": z.ZodCatch<z.ZodNullable<z.ZodType<string, z.ZodStringDef, string>>>;
    "providers-url": z.ZodCatch<z.ZodNullable<z.ZodType<string, z.ZodStringDef, string>>>;
    "metadata-url": z.ZodCatch<z.ZodNullable<z.ZodType<string, z.ZodStringDef, string>>>;
}, "strip", z.ZodTypeAny, {
    packages: Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>;
    includes: {
        key: string;
        hash: string | null;
    }[];
    providers: {
        [k: string]: string | null;
    };
    "provider-includes": {
        key: string;
        hash: string | null;
    }[];
    "providers-lazy-url": string | null;
    "providers-url": string | null;
    "metadata-url": string | null;
}, {
    packages?: unknown;
    providers?: unknown;
    includes?: unknown;
    "provider-includes"?: unknown;
    "providers-lazy-url"?: unknown;
    "providers-url"?: unknown;
    "metadata-url"?: unknown;
}>, {
    packages: Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>;
    includes: {
        key: string;
        hash: string | null;
    }[];
    providers: {
        [k: string]: string | null;
    };
    "provider-includes": {
        key: string;
        hash: string | null;
    }[];
    "providers-lazy-url": string | null;
    "providers-url": string | null;
    "metadata-url": string | null;
}, unknown>, {
    packages: Record<string, {
        version: string;
        homepage?: string | null | undefined;
        source?: {
            url: string;
        } | null | undefined;
        time?: string | null | undefined;
        require?: {
            php: string;
        } | null | undefined;
    }[]>;
    includesFiles: {
        key: string;
        hash: string | null;
    }[];
    providerPackages: {
        [k: string]: string | null;
    };
    files: {
        key: string;
        hash: string | null;
    }[];
    providersUrl: string | null;
    providersLazyUrl: string | null;
    metadataUrl: string | null;
    includesPackages: Record<string, ReleaseResult | null>;
}, unknown>;
export type RegistryMeta = z.infer<typeof RegistryMeta>;
