import { ServiceDefinition } from "../../ServiceDefinition.ts"; import { EndpointDefinition } from "../ExpressEndpointSetup.ts"; import { ErrorDetails } from "@facetlayer/Streams"; export interface EndpointValidationResult { error: ErrorDetails; } export interface FailedEndpoint { serviceName: string; path: string; method: string; error: ErrorDetails; } export interface ServicesValidationResult { problemEndpoints: FailedEndpoint[]; } /** * Validates a single endpoint for OpenAPI schema generation compatibility. * * @param serviceName - Name of the service containing the endpoint * @param endpoint - The endpoint definition to validate * @returns ProblematicEndpoint if validation fails, null if endpoint is valid */ export declare function validateEndpointForOpenapi(endpoint: EndpointDefinition): EndpointValidationResult; /** * Finds endpoints that will fail OpenAPI schema generation. * Tests each endpoint individually to identify which ones have unsupported Zod types. * * @param services - Array of service definitions to check * @returns ValidationResult containing any problematic endpoints */ export declare function validateServicesForOpenapi(services: ServiceDefinition[]): ServicesValidationResult; //# sourceMappingURL=validateServicesForOpenapi.d.ts.map