/** * Compares two directory paths and returns a value indicating their order. * @example * ```ts * import { dirComparator } from '@d-zero/shared/sort/dir'; * * const dirs = [ * ['a', 'b', 'c'], * ['a', 'b', 'd'], * ['a', 'b', ''], * ['a', 'b', 'index'], * ['a', 'b', 'index', ''], * ['a', 'b', 'index', 'c'], * ['a', 'b', 'index', 'd'], * ['a', 'b', 'index', '1'], * ['a', 'b', 'index', '2'], * ['a', 'b', 'index', '10'], * ]; * * dirs.sort(dirComparator); * ``` * @param d1 - The first directory path to compare. * @param d2 - The second directory path to compare. * @returns A value of 0 if the directory paths are equal, -1 if d1 should be sorted before d2, or 1 if d1 should be sorted after d2. */ export declare function dirComparator(d1: readonly string[], d2: readonly string[]): 0 | -1 | 1;