/// <reference types="react" />
import { Fetcher } from '@difizen/magent-core';
import { BaseView } from '@difizen/mana-app';
import { AgentManager } from '../../agent/agent-manager.js';
import type { AgentModel } from '../../agent/protocol.js';
import type { Graph, WorkflowMeta } from '../../workflow/protocol.js';
import './index.less';
export interface AgentFlowViewOption {
    agentId: string;
}
export declare class AgentFlowView extends BaseView {
    request: Fetcher;
    agentId: string;
    view: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
    agent: AgentModel;
    workflowId: string;
    workflow: WorkflowMeta;
    protected agentManager: AgentManager;
    constructor(option: AgentFlowViewOption, agentManager: AgentManager);
    get modelOptions(): {
        label: string;
        value: string;
    }[];
    protected initAgent: (agentId?: string) => AgentModel | undefined;
    protected getWorkflowInfo: (workflowId: string) => Promise<WorkflowMeta>;
    getGraphInfo: () => Promise<WorkflowMeta>;
    saveGraph: (graph: Graph) => Promise<import("@difizen/magent-core").FecterResponse<WorkflowMeta, any> | undefined>;
}
//# sourceMappingURL=agent-flow-view.d.ts.map