import 'reflect-metadata'; import type { ChronicleClassDecorator } from '../../types/standardDecoratorMetadata.js'; /** Metadata stored by the graphProjection class decorator. */ export interface GraphProjectionMetadata { /** The name of the graph. */ readonly name: string; } /** * Class decorator that marks a class implementing IGraphProjection as a graph projection, declared with a fluent builder. * @param name - The name of the graph, which is also the name of the read model the graph is registered as. * Defaults to the name of the class. * @returns A class decorator. */ export declare function graphProjection(name?: string): ChronicleClassDecorator; /** * Retrieves the metadata stored by the graphProjection decorator. * @param target - The class constructor. * @returns The metadata, or undefined when the class is not a graph projection. */ export declare function getGraphProjectionMetadata(target: Function): GraphProjectionMetadata | undefined; //# sourceMappingURL=graphProjection.d.ts.map