import { type VendorBarrel, type VendorPlatform, type VendorRuntimeEntry, type VendorVariant } from './vendorCompileTypes.ts';
import type { VendorBarrelConfig } from './XyConfig.ts';
export declare function log(isVerbose: boolean | undefined, ...args: unknown[]): void;
export declare function readJsonFile<T>(filePath: string): T;
export declare function writeJsonFile(filePath: string, data: unknown): void;
export declare function walkFiles(dir: string, exts: string[], out?: string[]): string[];
export declare function writeFile(filePath: string, contents: string): void;
export declare function swapMjsForDts(filePath: string): string;
export declare function swapDtsRefForTs(filePath: string): string;
export declare function buildVendorNameToDir(repoRoot: string, scopes: string[]): Record<string, string>;
export declare function scopedImportPrefixes(scopes: string[], selfScope?: string): string;
export declare function scopedImportPattern(scopes: string[], selfScope?: string): string;
export declare function parseVendorBarrel(packageDir: string, barrel: VendorBarrelConfig, scopes: string[]): VendorBarrel;
export declare function resolveExportVariants(packageDir: string, exportKey: string): VendorVariant[];
export declare function computeVendorClosure(seed: string[], nameToDir: Record<string, string>, scopes: string[], selfScope?: string): Set<string>;
export declare function vendoredPath(vendorRoot: string, name: string, distRel: string): string;
export declare function toRelImport(fromFile: string, targetFile: string, isDts: boolean): string;
export declare function platformOfVendoredFile(vendorRoot: string, file: string): VendorPlatform;
export declare function neutralEntry(base: string): {
    types: string;
    default: string;
};
export declare function platformEntry(name: string, platform: VendorPlatform): {
    types: string;
    default: string;
};
export declare function inferConditionalSubpaths(runtime: VendorRuntimeEntry[], nameToDir: Record<string, string>, configured?: string[]): string[];
export declare function exportsEqual(a: unknown, b: unknown): boolean;
export declare function entryFor(nameToDir: Record<string, string>, name: string, sub: string, platform: VendorPlatform): VendorVariant;
export declare function exactEntryFor(nameToDir: Record<string, string>, name: string, sub: string, platform: VendorPlatform): VendorVariant | undefined;
//# sourceMappingURL=vendorCompileInternals.d.ts.map