import { AnyObject, UndefinedAble } from '../../../shared/types'; export declare namespace AsyncQueueDefine { interface EntryCallback { (err?: any, result?: any): void; } interface Processor { (item: T, cb: (err?: any, result?: R) => void, removeCache: () => void): void; } interface CreatorOptions { name: string; processor: Processor; parallelism: number; getKey: (item: T) => K; uniqueData?: boolean; } type ProcessorOption = Partial<{ afterRequest(key: string, res?: unknown, payload?: AnyObject): AnyObject[] | Promise; beforeRequest(key: string, params?: unknown, payload?: AnyObject): UndefinedAble | void; }>; }