UNPKG

@ejazullah/smart-browser-automation

Version:

A smart AI-driven browser automation library and REST API server using MCP (Model Context Protocol) and LangChain for multi-step task execution. Includes both programmatic library usage and HTTP API server for remote automation.

14 lines (13 loc) 570 B
import { type Queue, type RunFunction } from './queue.js'; import { type QueueAddOptions } from './options.js'; export type PriorityQueueOptions = { priority?: number; } & QueueAddOptions; export default class PriorityQueue implements Queue<RunFunction, PriorityQueueOptions> { #private; enqueue(run: RunFunction, options?: Partial<PriorityQueueOptions>): void; setPriority(id: string, priority: number): void; dequeue(): RunFunction | undefined; filter(options: Readonly<Partial<PriorityQueueOptions>>): RunFunction[]; get size(): number; }