import 'reflect-metadata'; import { ChroniclePropertyDecorator } from '../../types/propertyDecoratorMetadata.js'; /** Metadata stored by the subtractFrom property decorator. */ export interface SubtractFromMetadata { /** The event constructor associated with this annotation. */ readonly eventType: Function; /** The event property name whose value is subtracted from the read model property. Defaults to the decorated property name. */ readonly eventPropertyName?: string; } /** * Property decorator that subtracts an event property value from the decorated read model property. * @param eventType - The event constructor. * @param eventPropertyName - Optional event property name. Defaults to the property name. * @returns A property decorator. */ export declare function subtractFrom(eventType: Function, eventPropertyName?: string): ChroniclePropertyDecorator; /** * Retrieves all subtractFrom metadata stored on the given property. * @param target - The class prototype. * @param propertyKey - The property name. * @returns An array of subtractFrom metadata entries. */ export declare function getSubtractFromMetadata(target: object, propertyKey: string): SubtractFromMetadata[]; //# sourceMappingURL=subtractFrom.d.ts.map