interface Job { resolve: (data: any) => void; reject: (data: any) => void; request: any; } export declare type DataloaderOptions = { singleLoader: (request: T) => Promise; batchLoader: (request: T[]) => Promise; batchBy: (request: T) => string | null; }; export declare class Dataloader { private options; batches: { [key: string]: Job[]; }; private tickActive; constructor(options: DataloaderOptions); request(request: T): Promise; private dispatchBatches; } export {};