import type { ExURL } from '../parse-url.js'; /** * Compares two URLs or strings representing URLs and returns a value indicating their order. * @example * ```ts * import { pathComparator } from '@d-zero/shared/sort/path'; * * const urls = [ * 'https://hostname.domain/10', * 'https://hostname.domain/2', * 'https://hostname.domain/1', * 'https://hostname.domain/100', * 'https://hostname.domain/4', * 'https://hostname.domain/22', * ]; * * urls.sort(pathComparator); * ``` * @param url1 - The first URL or string representing a URL to compare. * @param url2 - The second URL or string representing a URL to compare. * @returns A value indicating the order of the URLs: 0 if they are equal, -1 if the first URL comes before the second URL, 1 if the first URL comes after the second URL. */ export declare function pathComparator(url1: string | URL | ExURL, url2: string | URL | ExURL): 0 | -1 | 1;