import { Behavior } from './behavior'; import { Component } from './component'; import { ContextManager } from './context'; export interface ActionBehaviorConstructorProps { /** * The event to listen to in the node that this behavior is attached to. It should be the full name of the event, e.g. "onClick". * @zprop * @zvalues events */ event: string; /** * @zprop * @zdefault false */ runAtEditTime: boolean; } /** * Base class for all behaviors that perform an action in response to an event. */ export declare abstract class ActionBehavior extends Behavior { protected constructorProps: ConstructorProps; /** * Creates an instance of ActionBehavior. * @param contextManager The current ContextManager * @param instance The instance of the component that this behavior is attached to * @param constructorProps - The constructor properties. */ constructor(contextManager: ContextManager, instance: Component, constructorProps: ConstructorProps); private _updateRegistration; private _perform; abstract perform(...args: any[]): any; }