/** * Mnemonist FixedReverseHeap Typings * =================================== */ import {IArrayLikeConstructor, TypedArray} from './utils/types'; type HeapComparator = (a: T, b: T) => number; export default class FixedReverseHeap { // Members capacity: number; size: number; // Constructor constructor(ArrayClass: IArrayLikeConstructor, comparator: HeapComparator, capacity: number); constructor(ArrayClass: IArrayLikeConstructor, capacity: number); // Methods clear(): void; push(item: T): number; consume(): Array | TypedArray; toArray(): Array | TypedArray; inspect(): any; }