import type { ExURL } from './parse-url.js'; /** * Encode resource path with MIME type if needed * @param urlOrStringOrExUrl - URL object, URL string, or ExURL object * @param mimeType - MIME type (optional) * @param separator - Separator string between pathname and MIME type (default: ":::") * @returns Encoded resource path */ export declare function encodeResourcePath(urlOrStringOrExUrl: URL | string | ExURL, mimeType?: string, separator?: string): string; /** * Decode resource path and extract pathname and MIME type * @param encodedPath - Encoded resource path (e.g., "/page:::text/html" or "/style.css") * @param separator - Separator string between pathname and MIME type (default: ":::") * @returns Object with pathname and mimeType (null if not encoded) */ export declare function decodeResourcePath(encodedPath: string, separator?: string): { pathname: string; mimeType: string | null; }; /** * Parse encoded pathname and return the actual URL and local path * @param encodedPath - pathname or "pathname:::MIME/type" format * @param baseUrl - Base URL to construct full URL from pathname * @param separator - Separator string between pathname and MIME type (default: ":::") * @returns Object with url and localPath */ export declare function parseEncodedPath(encodedPath: string, baseUrl: string, separator?: string): { url: string; localPath: string; };