/** * Generator for custom query routes * Creates Fastify route files from parsed query definitions */ import { ParsedQuery } from '../types/custom-queries.js'; import { ParsedSchema } from '../types/custom-schemas.js'; export declare class CustomRouteGenerator { private project; private outputDir; private customSchemas; constructor(outputDir: string, customSchemas?: ParsedSchema[]); /** * Generate route files for all custom queries */ generateRoutes(queries: ParsedQuery[]): Promise; /** * Generate a single route file */ private generateRoute; /** * Add Zod validation schemas for params, query, body */ private addValidationSchemas; /** * Build Zod schema from parameter definitions */ private buildZodSchema; /** * Get Zod type for parameter */ private getZodType; /** * Build Zod schema for request body */ private buildBodySchema; /** * Add route handler function */ private addRouteHandler; /** * Build the handler body that executes user's custom logic */ private buildHandlerBody; } //# sourceMappingURL=custom-route-generator.d.ts.map