/** * Bytewise ordering helpers for semantic-set arrays. Identifiers, hashes, and * URNs in dapp-kit documents are ASCII, so UTF-16 code-unit order equals UTF-8 * byte order and matches the JCS property order used for hashing. */ export declare function compareCodeUnits(left: string, right: string): number; export declare function compareNumbers(left: number, right: number): number; export interface SortedUniqueIssue { index: number; message: string; } /** * Reports the first position at which `values` stops being strictly ascending * under `compare`; equal neighbours are duplicates, descending neighbours are * unsorted. Returns `undefined` when the array is sorted and unique. */ export declare function findSortedUniqueIssue(values: readonly T[], compare: (left: T, right: T) => number, subject: string): SortedUniqueIssue | undefined; export declare function isSortedUniqueStrings(values: readonly string[]): boolean; //# sourceMappingURL=ordering.d.ts.map