import type { dia } from '@joint/core'; import type { GraphElement } from '../types/element-types'; type SetElement = Omit & { id: dia.Cell.ID; }, 'isElement' | 'isLink'>; /** * A custom hook that adds an element to the graph. * @group Hooks * @returns A function that adds the element to the graph. * @example * ```ts * const addElement = useCreateElement(); * addElement({ id: '1', label: 'Node 1' }); * ``` */ export declare function useCreateElement(): (element: SetElement) => void; export {};