Files
vat-api.eu/node_modules/unenv/dist/runtime/node/internal/url/url.d.mts
2026-02-13 22:02:30 +01:00

23 lines
761 B
TypeScript

// Protocols that can allow "unsafe" and "unwise" chars.
export declare const unsafeProtocol: unknown;
// Protocols that never have a hostname.
export declare const hostlessProtocol: unknown;
// Protocols that always contain a // bit.
export declare const slashedProtocol: unknown;
export declare function pathToFileURL(filepath: string, options?: {
windows?: boolean;
});
export declare function fileURLToPath(path: string | URL, options?: {
windows?: boolean;
});
/**
* Utility function that converts a URL object into an ordinary options object
* as expected by the `http.request` and `https.request` APIs.
* @param {URL} url
* @returns {Record<string, unknown>}
*/
export declare function urlToHttpOptions(url: URL): {
__proto__: null;
path: string;
};