import { Constructor } from '../types'; declare global { interface Array { /** * 将实体数组转换为DTO数组 * @param dtoClass DTO类 * @param context 转换上下文 */ toDto(dtoClass: Constructor, context?: any): Promise; } } declare module 'typeorm' { interface SelectQueryBuilder { /** * 执行分页查询并转换为DTO页面 * @param pageOptionsDto 分页选项 * @param dtoClass DTO类 * @param context 转换上下文 */ toDtoPage(pageOptionsDto: any, dtoClass: Constructor, context?: any): Promise; } } export declare function transformEntityToDto(entity: EntityType, dtoClass: Constructor, context?: any): Promise;