import 'reflect-metadata'; import { ChroniclePropertyDecorator } from '../../types/propertyDecoratorMetadata.js'; /** Metadata stored by the setFrom property decorator. */ export interface SetFromMetadata { /** The event constructor associated with this annotation. */ readonly eventType: Function; /** The event property name to read the value from. Defaults to the decorated property name. */ readonly eventPropertyName?: string; } /** * Property decorator that maps an event property value onto 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 setFrom(eventType: Function, eventPropertyName?: string): ChroniclePropertyDecorator; /** * Retrieves all setFrom metadata stored on the given property. * @param target - The class prototype. * @param propertyKey - The property name. * @returns An array of setFrom metadata entries. */ export declare function getSetFromMetadata(target: object, propertyKey: string): SetFromMetadata[]; //# sourceMappingURL=setFrom.d.ts.map