import type { ElementModel } from './base.js'; export declare function setCreateState(creating: boolean, skipFieldInit: boolean): void; export declare function yfield(fallback?: unknown): PropertyDecorator; export declare function local(): PropertyDecorator; export declare function getDeriveProperties(prototype: unknown, prop: string | symbol, propValue: unknown, receiver: unknown): Record | null; export declare function updateDerivedProp(derivedProps: Record | null, receiver: ElementModel): void; /** * The derive decorator is used to derive other properties' update when the * decorated property is updated. * The decorator function will be called before the decorated property is updated. * The decorator function will not execute in model creation. * @param fn * @returns */ export declare function derive(fn: (propValue: any, instance: T) => Record): PropertyDecorator; /** * The convert decorator is used to convert the property value before it's * set to the Y map. * This decorator function will not execute in model creation. * @param fn * @returns */ export declare function convert(fn: (propValue: any, instance: T) => unknown): (target: unknown, prop: string | symbol) => void; export declare function getConvertMeta(target: unknown, prop: string | symbol): null | ((propValue: unknown, instance: unknown) => unknown); export declare function convertProps(target: unknown, propKey: string | symbol, newProp: unknown, receiver: unknown): unknown; export declare function observe(fn: (event: any, instance: T, type: 'modified' | 'altered') => void): (prototype: unknown, prop: string | symbol) => void; export declare function initFieldObservers(prototype: unknown, receiver: ElementModel): void; //# sourceMappingURL=decorators.d.ts.map