import 'reflect-metadata'; import type { ChronicleClassDecorator } from '../../../types/standardDecoratorMetadata.js'; import type { ViewOfMetadata } from './ViewOfMetadata.js'; import type { ViewOfOptions } from './ViewOfOptions.js'; /** * Class decorator that marks a class as a view over a property graph. A view is a read model that is anchored at one * node. Its members are properties of that node (viewKey and viewProperty), relations along declared edges to other * views (follows) and properties of the edge that was followed (fromEdge). Name the graph with the graph decorator. * A view only declares what is read; the class is never a node or an edge. * @param root - A function returning the class of the node the view is anchored at. It is resolved when the views * are validated, so the classes can be declared in any order. * @param options - The name of the view, which defaults to the name of the class. * @returns A class decorator. */ export declare function viewOf(root: () => Function, options?: ViewOfOptions): ChronicleClassDecorator; /** * Retrieves the metadata stored by the viewOf decorator. * @param target - The class constructor. * @returns The metadata, or undefined when the class is not a view. */ export declare function getViewOfMetadata(target: Function): ViewOfMetadata | undefined; //# sourceMappingURL=viewOf.d.ts.map