import { KubernetesObject } from "@kubernetes/client-node"; import { WatchPhase } from "kubernetes-fluent-client/dist/fluent/shared-types"; type WatchCallback = (obj: KubernetesObject, phase: WatchPhase) => Promise; /** * Queue is a FIFO queue for reconciling */ export declare class Queue { #private; constructor(name: string); label(): { name: string; uid: string; }; stats(): { queue: { name: string; uid: string; }; stats: { length: number; }; }; /** * Enqueue adds an item to the queue and returns a promise that resolves when the item is * reconciled. * * @param item The object to reconcile * @param type The watch phase requested for reconcile * @param reconcile The callback to enqueue for reconcile * @returns A promise that resolves when the object is reconciled */ enqueue(item: K, phase: WatchPhase, reconcile: WatchCallback): Promise; } export {}; //# sourceMappingURL=queue.d.ts.map