import { Request, Response, NextFunction } from 'express'; import { Lair, CRUDOptions } from 'lair-db'; export declare type Handler = (req: Request, res: Response, next: NextFunction, lair: Lair) => any; export declare type CustomNext = (req: Request, res: Response, data: Record[] | Record | any, lair: Lair) => any; export default class Route { static createRoute(method?: string, path?: string, handler?: Handler): Route; static get(path: string, modelName: string, lairOptions?: CRUDOptions, customNext?: CustomNext): Route; static post(path: string, modelName: string, lairOptions?: CRUDOptions, customNext?: CustomNext): Route; static put(path: string, modelName: string, lairOptions?: CRUDOptions, customNext?: CustomNext): Route; static patch(path: string, modelName: string, lairOptions?: CRUDOptions, customNext?: CustomNext): Route; static delete(path: string, modelName: string, customNext?: CustomNext): Route; handler: Handler; method: string; /** * Used to override `server.namespace` for current Route */ namespace: string; path: string; }