/** * Utility functions for module format handling */ import type { ModuleFormat } from "../types"; /** * Utility class for handling module format operations */ export declare class ModuleFormatUtils { /** * Get file extension for a given module format */ static getExtensionForFormat(format: ModuleFormat): string; /** * Check if a format is supported in the current environment */ static isFormatSupported(format: ModuleFormat): boolean; /** * Get the optimal format for the current environment */ static getOptimalFormat(availableFormats: ModuleFormat[]): ModuleFormat; /** * Detect module format from URL or content */ static detectFormatFromUrl(url: string): ModuleFormat | null; /** * Check if ESM is supported in the current environment */ private static supportsESM; /** * Normalize module URL for a specific format */ static normalizeUrlForFormat(url: string, format: ModuleFormat): string; /** * Get MIME type for a module format */ static getMimeType(format: ModuleFormat): string; } //# sourceMappingURL=format-utils.d.ts.map