import { Node, Edge } from '../FlowPanel';
import { default as FlowManager } from '../manager';

export interface FlowContext<T extends Record<string, any>> {
    nodes: Node[];
    edges: Edge[];
    disabledNodes?: string[];
    changeSize: (id: string, width: number, height: number) => void;
    flowManager: FlowManager<T>;
    readonly?: boolean;
    displayLogNodeName?: string;
    setDisplayLogNodeName: (nodeName?: string) => void;
}
export declare const flowContext: import('react').Context<FlowContext<any>>;
export declare function useFlow<T extends Record<string, any> = any>(): FlowContext<T>;
