import { LEVEL_ENUM, Vertex, View, ActionOptions } from '..';
/**
 * 前端页面事件
 */
export declare class Lifecycle extends Vertex {
    /**
     * 概念类型
     */
    readonly level: LEVEL_ENUM;
    /**
     * 页面事件 Id
     */
    readonly id: string;
    /**
     * 页面事件名
     */
    readonly name: string;
    /**
     * 页面事件逻辑 Id
     */
    readonly logicId?: string;
    /**
     * 所属页面 Id
     */
    readonly viewId: string;
    /**
     * 所属页面
     */
    readonly view: View;
    /**
     * @param source 需要合并的部分参数
     */
    constructor(source?: Partial<Lifecycle>);
    /**
     * 添加页面事件
     */
    create(none?: void, actionOptions?: ActionOptions): Promise<this>;
    /**
     * 修改页面事件
     */
    update(data?: Lifecycle, actionOptions?: ActionOptions): Promise<this>;
    /**
     * 保存
     * createOrUpdate 创建或更新
     */
    save(): Promise<this>;
    /**
     * 删除页面事件
    */
    delete(none?: void, actionOptions?: ActionOptions): Promise<void>;
    selectName(name: string): void;
    selectLogic(logicId: string): void;
    /**
     * 从后端 JSON 生成规范的 Lifecycle 对象
     */
    static from(source: any, view: View): Lifecycle;
}
export default Lifecycle;
