/** Comparison function type */ export type CompareFunction = (a: Readonly, b: Readonly) => number; /** Queue class that retrieves values in priority order (lowest first). */ export declare class PriorityQueue { private readonly values; length: number; readonly compareFn: CompareFunction; constructor(compareFn: CompareFunction, initialValues?: readonly T[]); /** Put a value into the queue. */ put(value: T): void; /** Remove and return the head of the queue. */ get(): T | undefined; private bubbleUp; private bubbleDown; } /** Return a new array containing values in ascending order. */ export declare const heapsort: (compareFn: CompareFunction, values: readonly T[]) => T[];