import { PotionBase } from './potion'; import { Item } from './item'; export declare function potionInstance(ctor: typeof Item): PotionBase; export declare function decorateCtorWithPotionInstance(ctor: typeof Item, instance: any): void; export declare function potionURI(ctor: typeof Item): string; export declare function decorateCtorWithPotionURI(ctor: typeof Item, uri: string): void; export declare function potionPromise(potion: PotionBase): typeof Promise; export declare function setPotionPromise(ctor: typeof PotionBase, promise: any): void; export declare function isReadonly(ctor: any, key: string): boolean; /** * Mark a resource property as readonly and omit when saved. * * @example * class User extends Item { * @readonly * age; * } */ export declare function readonly(target: any, property: string): void;