import { MiddlewareOptions } from '../utils'; /** * TypeORM EntitySubscriber that masks entities on serialization only. * * Mutating loaded entities in-place would cause TypeORM's UnitOfWork to * persist masked values on the next save. Instead, this subscriber installs * a `toJSON()` override on the loaded entity so HTTP responses and * `JSON.stringify()` produce masked output while the in-memory entity * remains writable. */ export declare class TypeORMSubscriber { private readonly options; private readonly schema; constructor(options?: MiddlewareOptions); afterLoad(entity: any): void; } export declare const typeorm: (options?: MiddlewareOptions) => TypeORMSubscriber; //# sourceMappingURL=typeorm.d.ts.map