/** * Adds the path component to the URL if the URL is missing one. * * @param {*} url the URL * @param {*} path path component * @returns {*} the updated URL */ export declare const appendPathnameIfEmpty: (url: string, path: string) => string; export declare const parseHost: (host?: string) => { host?: string; port?: string; isValid: boolean; }; export declare const isValidJdbcUrl: (jdbcUrl: string) => { status: boolean; message?: string; }; export declare const parseJdbcUrl: (jdbcUrl: string) => { hostName: string; port?: string; isValid: boolean; }; /** * * Returns whether the given URL or hostname refers to localhost (by name or loopback IP). * * @param {*} hostnameOrUrl a URL or hostname * @returns {*} true iff hostnameOrUrl refers to localhost */ export declare function isLocalhost(hostnameOrUrl: string | URL): boolean; /** * * Parses the port from an http/https URL. * * @param {*} url an http/https url * @returns {*} an integer port */ export declare function getPortFromUrl(url: string): number; //# sourceMappingURL=url-helpers.d.ts.map