import { Request, Response, NextFunction } from 'express'; import { Lair, CRUDOptions } from '@swarm-host/lair'; export declare function defaultHandler(req: Request, res: Response, next: NextFunction, lair: Lair): Response; 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 { method: string; namespace: string; oldHandler: Handler; path: string; static createRoute(method?: string, path?: string, handler?: Handler): Route; static delete(path: string, modelName: string, customNext?: CustomNext): Route; static get(path: string, modelName: string, lairOptions?: CRUDOptions, customNext?: CustomNext): Route; static patch(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; defaultHandler(req: Request, res: Response, next: NextFunction, lair: Lair): Response>; }