import type { FastifyInstance, RawServerBase, RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, ContextConfigDefault, RouteShorthandOptions, FastifyRequest, FastifyReply } from 'fastify'; import type { RouteGenericInterface } from 'fastify/types/route'; export declare function registerRoutes(server: FastifyInstance, folder: string, pathPrefix?: string): Promise; interface FastifyNowOpts { routesFolder: string; pathPrefix?: string; } type NowRouteHandlerMethod = RawRequestDefaultExpression, RawReply extends RawReplyDefaultExpression = RawReplyDefaultExpression, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault> = (this: FastifyInstance, request: FastifyRequest, reply: FastifyReply, server: FastifyInstance) => void | RouteGeneric['Reply'] | Promise; export interface NowRequestHandler = RawRequestDefaultExpression, RawReply extends RawReplyDefaultExpression = RawReplyDefaultExpression> extends NowRouteHandlerMethod { opts?: RouteShorthandOptions; } declare const _default: import("fastify").FastifyPluginCallback; export default _default;