/** Shared limits across batches and callers; queued cancellation never consumes a permit. */ export declare class DataScheduler { private readonly totalLimit; private readonly resourceLimit; private readonly running; private readonly queue; private active; constructor(totalLimit?: number, resourceLimit?: number); run(key: string, signal: AbortSignal | undefined, task: () => Promise): Promise; private drain; } export declare const dataScheduler: DataScheduler;