/** Utility functions for handling baseHref paths in Zephyr */
import type { ZeBuildAssetsMap } from 'zephyr-edge-contract';
/**
 * Normalizes a base path string to ensure consistent format across all plugins
 *
 * @param baseHref - The base path string to normalize
 * @returns A normalized base path string, or empty string for root/empty paths
 *   Normalization rules:
 *
 *   - Removes leading and trailing slashes
 *   - Handles special cases like '/', './', '', '.'
 *   - Returns empty string for root or empty paths
 */
export declare function normalizeBasePath(baseHref: string | null | undefined): string;
/**
 * Applies a baseHref prefix to a path
 *
 * @param path - The original asset path
 * @param normalizedBaseHref - The normalized baseHref string
 * @returns The path with baseHref applied
 */
export declare function applyBaseHrefToPath(path: string, normalizedBaseHref: string): string;
/**
 * Transforms asset paths by applying the baseHref prefix
 *
 * @param assetsMap - The original assets map
 * @param baseHref - The baseHref to apply to asset paths
 * @returns A new assets map with updated paths
 */
export declare function applyBaseHrefToAssets(assetsMap: ZeBuildAssetsMap, baseHref: string | null | undefined): ZeBuildAssetsMap;
//# sourceMappingURL=ze-basehref-handler.d.ts.map