import type { QuotaType, QuotaService } from '@pipeline-builder/api-core'; import type { Request, Response, NextFunction } from 'express'; /** * Create middleware that checks a specific quota type before proceeding. * * On quota exceeded, returns a 429 response with quota details. * On quota service failure, fails open (allows the request). * * @param quotaService - Quota service client * @param quotaType - Which quota to check (e.g. 'apiCalls', 'pipelines', 'plugins') * @returns Express middleware */ export declare function checkQuota(quotaService: QuotaService, quotaType: QuotaType): (req: Request, res: Response, next: NextFunction) => Promise;