import type { DmmfDocument } from '../../types/dmmf.js'; import type { GeneratorConfig, OpenAPISpec } from '../types.js'; import type { ParsedQuery } from '../../types/custom-queries.js'; import type { ParsedSchema } from '../../types/custom-schemas.js'; export declare class OpenAPIGenerator { private dmmf; private config; private customQueries; private customSchemas; constructor(dmmf: DmmfDocument, config: GeneratorConfig, customQueries?: ParsedQuery[], customSchemas?: ParsedSchema[]); private toPascalCase; generate(): Promise; private generateInfo; private generateServers; private generatePaths; /** * Get has-many relationships from a model */ private getHasManyRelationships; private generateSchemas; private generateModelProperties; private mapPrismaFieldToOpenAPI; private getPrimitiveTypeSchema; private getIdSchema; private generateSecuritySchemes; /** * Generate OpenAPI paths for custom queries */ private generateCustomQueryPaths; /** * Generate parameters for custom query */ private generateQueryParameters; /** * Generate body schema from body definition */ private generateBodySchema; /** * Convert parameter type to OpenAPI schema */ private paramTypeToOpenAPI; /** * Generate OpenAPI schemas for custom schemas */ private generateCustomSchemas; /** * Get relationship names for a model */ private getModelRelationships; /** * Infer field type from source model */ private inferFieldType; } //# sourceMappingURL=openapi-generator.d.ts.map