import { type NextFunction, type Request, type Response, type Router } from 'express'; import type { EntityMeta, Type } from '../type/index.js'; export declare function querierMiddleware(opts?: MiddlewareOptions): Router; export declare function buildQuerierRouter(entity: Type, opts: ExtraOptions): Router; export declare function errorHandler(err: any, req: Request, res: Response, _next: NextFunction): void; type Pre = (req: Request, meta: EntityMeta) => void; type ExtraOptions = { /** * Allow augment any kind of request before it runs */ readonly pre?: Pre; /** * Allow augment a save request before it runs */ readonly preSave?: Pre; /** * Allow augment a filter request before it runs */ readonly preFilter?: Pre; }; export type MiddlewareOptions = ExtraOptions & { include?: Type[]; exclude?: Type[]; }; export {}; //# sourceMappingURL=querierMiddleware.d.ts.map