import 'reflect-metadata'; import type { ChronicleClassDecorator } from '../../types/standardDecoratorMetadata.js'; /** Options for the nodeRemovedWith class decorator. */ export interface NodeRemovedWithOptions { /** The name of the event property that holds the key of the node. Defaults to the event source id. */ readonly key?: string; /** Delete the edges attached to the node with it. Without it a node that still has edges cannot be deleted. */ readonly detach?: boolean; } /** Metadata stored by the nodeRemovedWith class decorator. */ export interface NodeRemovedWithMetadata extends NodeRemovedWithOptions { /** The event constructor. */ readonly eventType: Function; } /** * Class decorator that deletes a node when an event is observed. * @param eventType - The event constructor. * @param options - Optional key and detach configuration. * @returns A class decorator. */ export declare function nodeRemovedWith(eventType: Function, options?: NodeRemovedWithOptions): ChronicleClassDecorator; /** * Retrieves all nodeRemovedWith metadata stored on the given class constructor. * @param target - The class constructor. * @returns An array of nodeRemovedWith metadata entries. */ export declare function getNodeRemovedWithMetadata(target: Function): NodeRemovedWithMetadata[]; //# sourceMappingURL=nodeRemovedWith.d.ts.map