import type { Entity } from '../classes/Entity'; import { int, float } from '../types/NativeAliases'; export declare class Decorator { /** * @param entity * @param propertyName * @param value * @returns */ static decorSetFloat(entity: Entity, propertyName: string, value: float): boolean; /** * @param entity * @param propertyName * @returns */ static decorGetFloat(entity: Entity, propertyName: string): float; /** * @param propertyName * @param type * @param p2 */ static decorRegister2(propertyName: string, type: int, p2: boolean): void; /** * Returns whether or not the specified property is set for the entity. * * @param entity * @param propertyName * @returns */ static decorExistOn(entity: Entity, propertyName: string): boolean; /** * @param entity * @param propertyName * @param value * @returns */ static decorSetUint8(entity: Entity, propertyName: string, value: int): boolean; /** * Sets property to int. * * @param entity * @param propertyName * @param value * @returns */ static decorSetInt(entity: Entity, propertyName: string, value: int): boolean; /** * type: see DECOR_REGISTER * * @param propertyName * @param type * @returns */ static decorIsRegisteredAsType(propertyName: string, type: int): boolean; /** * @param entity * @param propertyName * @returns */ static decorGetBool(entity: Entity, propertyName: string): boolean; /** * @param entity * @param propertyName * @returns */ static decorGetInt(entity: Entity, propertyName: string): int; /** * @param entity * @param propertyName * @returns */ static decorRemove(entity: Entity, propertyName: string): boolean; /** * @param entity * @param propertyName * @returns */ static decorGetUint8(entity: Entity, propertyName: string): int; /** * @param entity * @returns */ static decorRemoveAll(entity: Entity): boolean; /** * @param entity * @param propertyName * @param value * @returns */ static decorSetString(entity: Entity, propertyName: string, value: string): boolean; /** * @param propertyName * @param type */ static decorRegister(propertyName: string, type: int): void; /** * This function sets metadata of type bool to specified entity. * * @param entity * @param propertyName * @param value * @returns */ static decorSetBool(entity: Entity, propertyName: string, value: boolean): boolean; } //# sourceMappingURL=Decorator.d.ts.map