declare class BehaviorInstanceEvent implements ConstructEvent { instance: InstType; behaviorInstance: BehInstType; } interface BehaviorInstanceEventMap { } /** Represents an instance of a behavior associated with a specific object instance. * @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/object-interfaces/ibehaviorinstance | IBehaviorInstance documentation } */ declare class IBehaviorInstance { // Note IBehaviorInstance does not derive from ConstructEventTargetDispatcher - it implements it // separately to make use of in its type definition (similar to IInstance, but using both // and for the corresponding instance type). addEventListener>(type: K, listener: (ev: BehaviorInstanceEventMap[K]) => any): void; removeEventListener>(type: K, listener: (ev: BehaviorInstanceEventMap[K]) => any): void; dispatchEvent(evt: ConstructEvent): void; readonly runtime: IRuntime; readonly behavior: IBehavior_; readonly behaviorType: IBehaviorType; readonly instance: InstType; }