/** * Mnemonist FibonacciHeap Typings * ================================ */ type FibonacciHeapComparator = (a: T, b: T) => number; export default class FibonacciHeap { // Members size: number; // Constructor constructor(comparator?: FibonacciHeapComparator); // Methods clear(): void; push(item: T): number; peek(): T | undefined; pop(): T | undefined; inspect(): any; // Statics static from( iterable: Iterable | {[key: string]: I}, comparator?: FibonacciHeapComparator ): FibonacciHeap; } export class MinFibonacciHeap { // Members size: number; // Constructor constructor(comparator?: FibonacciHeapComparator); // Methods clear(): void; push(item: T): number; peek(): T | undefined; pop(): T | undefined; inspect(): any; // Statics static from( iterable: Iterable | {[key: string]: I}, comparator?: FibonacciHeapComparator ): FibonacciHeap; } export class MaxFibonacciHeap { // Members size: number; // Constructor constructor(comparator?: FibonacciHeapComparator); // Methods clear(): void; push(item: T): number; peek(): T | undefined; pop(): T | undefined; inspect(): any; // Statics static from( iterable: Iterable | {[key: string]: I}, comparator?: FibonacciHeapComparator ): FibonacciHeap; }