/** * Build-time OpenAPI schema generator for nauth-toolkit DTOs. * * Why this exists: * - Consumer apps often import DTO classes from `node_modules`. * - Many OpenAPI integrations (including NestJS Swagger plugin transforms) * don't introspect external packages well enough to "expand" DTO shapes. * - To keep `@nauth-toolkit/core` framework-agnostic, we generate and ship * OpenAPI component schemas as plain JSON. * * Output: * - `dist/openapi/components.schemas.json` * * Implementation approach (Option A): * - Parse `src/dto/index.ts` to find exported DTO/type files. * - Collect exported symbols (classes/interfaces/enums/types) from those files. * - Create a temporary "registry" type that references all symbols. * - Generate a single JSON Schema document and convert `definitions` into * OpenAPI `components.schemas` (with `$ref` rewrites). * * @example * ```bash * # Executed by the core build: * node dist/openapi/generate-openapi.js * ``` */ export declare function generateOpenApiSchemas(): void; //# sourceMappingURL=generate-openapi.d.ts.map