import { IGetCompareValue } from '@datastructures-js/heap'; import { PriorityQueue } from './priorityQueue'; export interface LegacyOptions { compare: (a: T, b: T) => number; } export interface MinPriorityQueue extends PriorityQueue { enqueue(value: T): MinPriorityQueue; push(value: T): MinPriorityQueue; } export const MinPriorityQueue: { new (options?: IGetCompareValue | LegacyOptions | null | undefined, values?: T[]): MinPriorityQueue; fromArray(values: T[], options?: IGetCompareValue | LegacyOptions | null | undefined): MinPriorityQueue; };