import 'reflect-metadata'; import type { ChronicleClassDecorator } from '../../types/standardDecoratorMetadata.js'; /** Metadata stored by the edge class decorator. */ export interface EdgeMetadata { /** The edge type, for example MEMBER_OF. */ readonly type: string; } /** * Class decorator that marks a class as an edge in a property graph. The members marked with edgeSource and * edgeTarget hold the keys of the nodes at both ends and are not properties of the edge. An edge is identified by its * type, source and target. Give a member the graphKey decorator to identify it by that property as well, which allows * more than one edge of the type between the same two nodes. * @param type - The edge type, for example MEMBER_OF. * @returns A class decorator. */ export declare function edge(type: string): ChronicleClassDecorator; /** * Retrieves the metadata stored by the edge decorator. * @param target - The class constructor. * @returns The metadata, or undefined when the class is not an edge. */ export declare function getEdgeMetadata(target: Function): EdgeMetadata | undefined; //# sourceMappingURL=edge.d.ts.map