import { z } from 'zod';
declare const YarnrcYmlSchema: z.ZodObject<{
    npmRegistryServer: z.ZodOptional<z.ZodString>;
    npmScopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
        npmRegistryServer: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        npmRegistryServer?: string | undefined;
    }, {
        npmRegistryServer?: string | undefined;
    }>>>;
}, "strip", z.ZodTypeAny, {
    npmRegistryServer?: string | undefined;
    npmScopes?: Record<string, {
        npmRegistryServer?: string | undefined;
    }> | undefined;
}, {
    npmRegistryServer?: string | undefined;
    npmScopes?: Record<string, {
        npmRegistryServer?: string | undefined;
    }> | undefined;
}>;
export type YarnConfig = z.infer<typeof YarnrcYmlSchema>;
export declare function loadConfigFromYarnrcYml(yarnrcYml: string): YarnConfig | null;
export declare function resolveRegistryUrl(packageName: string, yarnConfig: YarnConfig): string | null;
export {};
