import type { MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Reactive sorted array. Returns a computed ref containing a sorted copy * of the source array. * * @param source - Source array (raw or ref) * @param compareFn - Optional comparison function (defaults to natural order) */ export declare function useSorted(source: MaybeRef, compareFn?: (a: T, b: T) => number): Ref;