import type { Express } from "express"; import { z } from "zod"; import { ZAPI, ZodBase } from "../def"; /** * The args of express handler implementation */ export interface HandlerArgs { request: Express.Request; response: Express.Response; dto: DTO; } /** * The implementation of api */ export interface ExpressImplementation { express: Express; def: ZAPI; handler: (dto: HandlerArgs>) => Promise; } /** * Implement your api on express instance * @param impl */ export declare function implExpress(impl: ExpressImplementation): void; //# sourceMappingURL=express.d.ts.map