import { ICompare } from '@datastructures-js/heap';

export class PriorityQueue<T> {
  constructor(compare: ICompare<T>, values?: T[]);
  [Symbol.iterator](): Iterator<T, any, undefined>;
  size(): number;
  isEmpty(): boolean;
  front(): T;
  back(): T;
  enqueue(value: T): PriorityQueue<T>;
  push(value: T): PriorityQueue<T>;
  dequeue(): T;
  pop(): T;
  remove(cb: (value: T) => boolean): T[];
  toArray(): T[];
  clear(): void;
  static fromArray<T>(values: T[], compare: ICompare<T>): PriorityQueue<T>;
}
