import express, { NextFunction, Request, Response } from 'express'; import { z } from 'zod'; import { PrismApp } from '../app/PrismApp.ts'; export { createEndpoint } from '../endpoints/createEndpoint.ts'; type EndpointRequireOption = 'authenticated-user'; export interface EndpointDefinition { method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; path: string; handler: (input: any) => Promise | any; requestSchema?: z.ZodSchema; responseSchema?: z.ZodSchema; description?: string; requires?: EndpointRequireOption[]; /** * Unique identifier for this endpoint in the OpenAPI schema. * If not provided, one will be generated from the method and path. * Must be unique across all endpoints in the app. */ operationId?: string; } export declare function getRequestDataFromReq(req: Request): any; export declare function mountPrismApp(app: express.Application, prismApp: PrismApp): void; export declare function mountMiddleware(app: express.Application, middleware: { path: string; handler: (req: Request, res: Response, next: NextFunction) => void; }): void; export declare function mountMiddlewares(app: express.Application, middlewares: { path: string; handler: (req: Request, res: Response, next: NextFunction) => void; }[]): void; //# sourceMappingURL=ExpressEndpointSetup.d.ts.map