import type { RefObject } from 'react'; import type { Node, NodeId } from '../types'; export type AddNodeAtCenterInput = { id: NodeId; width: number; height: number; data?: Partial; }; export type AddAtCenterOptions = { stepPx?: number; modulo?: number; }; /** * React helpers bound to a specific Canvas root element. * Provides addNodeAtCenter() that places nodes at the visual center regardless of zoom, * with a small diagonal offset for subsequent nodes. */ export declare function useCanvasHelpers(rootRef: RefObject, options?: AddAtCenterOptions): { addNodeAtCenter: (input: AddNodeAtCenterInput) => void; resetCenterOffset: () => void; };