/** * Prune a generated DTO file's `class-validator` import to exactly the * decorators it actually uses. * * The validator import list is assembled from a fixed base set plus field-type * inferences, which can over-include (e.g. `IsOptional` when every field and * relationship is required, or `IsDefined` when everything is optional). An * unused import is an ESLint `no-unused-vars` error, so we filter the list down * to the names that appear as a `@Name(` decorator in the rest of the file. * * @param content - The full generated DTO file content. * @returns The content with its class-validator import line pruned. */ export declare function pruneClassValidatorImports(content: string): string; //# sourceMappingURL=dto-imports.d.ts.map