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