import 'reflect-metadata'; import { ChronicleClassOrPropertyDecorator } from '../../types/propertyDecoratorMetadata.js'; /** Metadata stored by the removedWithJoin class or property decorator. */ export interface RemovedWithJoinMetadata { /** The event constructor that triggers removal via a join. */ readonly eventType: Function; /** The event property name that identifies the instance to remove. Defaults to the event source identifier. */ readonly key?: string; } /** * Class or property decorator that specifies the event type that removes a read model instance or child via a join. * @param eventType - The event constructor. * @param key - Optional event property name used as the key to identify the instance to remove. * @returns A class and property decorator. */ export declare function removedWithJoin(eventType: Function, key?: string): ChronicleClassOrPropertyDecorator; /** * Retrieves removedWithJoin metadata stored on the given class constructor. * @param target - The class constructor. * @returns An array of removedWithJoin metadata entries. */ export declare function getRemovedWithJoinClassMetadata(target: Function): RemovedWithJoinMetadata[]; /** * Retrieves removedWithJoin metadata stored on the given property. * @param target - The class prototype. * @param propertyKey - The property name. * @returns An array of removedWithJoin metadata entries. */ export declare function getRemovedWithJoinPropertyMetadata(target: object, propertyKey: string): RemovedWithJoinMetadata[]; //# sourceMappingURL=removedWithJoin.d.ts.map