HEX
Server: Apache/2.4.65 (Debian)
System: Linux srv39710 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.4.11
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: //opt/bitninja-dispatcher/node_modules/denque/index.d.ts
declare class Denque<T = any> {
  constructor();
  constructor(array: T[]);
  constructor(array: T[], options: IDenqueOptions);

  push(item: T): number;
  unshift(item: T): number;
  pop(): T | undefined;
  removeBack(): T | undefined;
  shift(): T | undefined;
  peekBack(): T | undefined;
  peekFront(): T | undefined;
  peekAt(index: number): T | undefined;
  get(index: number): T | undefined;
  remove(index: number, count: number): T[];
  removeOne(index: number): T | undefined;
  splice(index: number, count: number, ...item: T[]): T[] | undefined;
  isEmpty(): boolean;
  clear(): void;

  toString(): string;
  toArray(): T[];

  length: number;
}

interface IDenqueOptions {
  capacity?: number
}

export = Denque;