import type { CausalGraph, GraphState } from '../types';
import { EditorMode } from '../types';
import { GraphActionCreators } from './causal-graph-store';
import type { GraphLayout } from './graph-layout';
export interface UseCausalGraphEditorApi {
    api: GraphApi;
    layout: GraphLayout;
    state: GraphState;
}
type ActionName = keyof typeof GraphActionCreators;
/**
 * Graph API object containing all available methods to modify the graph
 */
export type GraphApi = {
    [k in ActionName]: (...args: Parameters<(typeof GraphActionCreators)[k]>) => void;
};
/**
 * A helper hook to inject causal graph editor API for given initial graphdata
 */
export default function useCausalGraphEditor(graphData: CausalGraph, editorMode: EditorMode, graphLayout: GraphLayout, availableInputs?: string[]): UseCausalGraphEditorApi;
export {};
//# sourceMappingURL=use-causal-graph-editor.d.ts.map