import { AbstractSkeletosState } from "../extendible/AbstractSkeletosState"; /** * Decorator to mark a property as a reference to a Skeletos primitive. * * Note: this only allows to retrieve a primitive from a reference. It does not allow you to set a primitive * as a reference, because primitives don't hold any intrinsic information about cursors. That is, where a State object * has a field called cursor that holds the path of the cursor where it is located in the tree, a primitive has no such * field (because it cannot). As such, you should pair this up with a @Cursor decorator on a cursor field. * * @param nameOfCursor use this if you want to name the cursor something other than the property name, otherwise leave * blank */ export declare function PrimitiveRef(nameOfCursor?: string): (target: AbstractSkeletosState, propertyKey: string) => void;