import 'reflect-metadata'; import { ChroniclePropertyDecorator } from '../../types/propertyDecoratorMetadata.js'; /** Metadata stored by the increment property decorator. */ export interface IncrementMetadata { /** The event constructor that triggers the increment. */ readonly eventType: Function; /** Optional constant key. All events will update the same read model instance. */ readonly constantKey?: string; } /** * Property decorator that increments the decorated read model property each time the specified event occurs. * @param eventType - The event constructor. * @param constantKey - Optional constant key value. * @returns A property decorator. */ export declare function increment(eventType: Function, constantKey?: string): ChroniclePropertyDecorator; /** * Retrieves all increment metadata stored on the given property. * @param target - The class prototype. * @param propertyKey - The property name. * @returns An array of increment metadata entries. */ export declare function getIncrementMetadata(target: object, propertyKey: string): IncrementMetadata[]; //# sourceMappingURL=increment.d.ts.map