@difizen/ai-flow
Version:
Scalable, out-of-the-box, agent-oriented flow
24 lines (23 loc) • 709 B
TypeScript
import { type NodeType } from "../../interfaces/flow";
import React from 'react';
import type { Edge } from '@xyflow/react';
import { ComponentType } from 'react';
import '@xyflow/react/dist/style.css';
interface FlowProps {
classNames?: string;
/** show flow mini map */
miniMap?: boolean;
/** node types */
nodeTypes?: Record<string, ComponentType<any>>;
/** toolbar in flow*/
toolbar: React.ReactNode;
/** initial graph */
initialGraph?: {
nodes: NodeType[];
edges: Edge[];
};
/** Auto save function */
onAutoSave?: () => Promise<void>;
}
declare function Flow(props: FlowProps): import("react/jsx-runtime").JSX.Element;
export default Flow;