import { Position } from '../../xyflow/react.ts';
import type { HandleConfigurationSpecificPosition } from '../../schema/node-definition/handle';
import { type HandleType } from './HandleNotch';
export interface HandleActionEvent {
    handleId: string;
    nodeId: string;
    handleType: HandleType;
    position: Position;
    originalEvent: React.MouseEvent;
}
type ButtonHandleProps = {
    id: string;
    nodeId: string;
    type: 'source' | 'target';
    position: Position;
    connectionPosition?: Position;
    handleType: HandleType;
    label?: string;
    labelIcon?: React.ReactNode;
    labelBackgroundColor?: string;
    visible?: boolean;
    showButton?: boolean;
    selected?: boolean;
    index?: number;
    total?: number;
    onAction?: (event: HandleActionEvent) => void;
    showNotches?: boolean;
    customPositionAndOffsets?: HandleConfigurationSpecificPosition;
    nodeWidth?: number;
    nodeHeight?: number;
    portalAction?: boolean;
};
export declare const ButtonHandle: import("react").MemoExoticComponent<({ id, nodeId, type, position, connectionPosition, handleType, label, labelIcon, labelBackgroundColor, visible, showButton, selected, index, total, onAction, showNotches, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction, }: ButtonHandleProps) => import("react/jsx-runtime").JSX.Element>;
export interface ButtonHandleConfig {
    id: string;
    type: 'source' | 'target';
    handleType: HandleType;
    label?: string;
    labelIcon?: React.ReactNode;
    showButton?: boolean;
    labelBackgroundColor?: string;
    visible?: boolean;
    showHandle?: boolean;
    onAction?: (event: HandleActionEvent) => void;
    customPositionAndOffsets?: HandleConfigurationSpecificPosition;
}
export declare const ButtonHandles: import("react").MemoExoticComponent<({ nodeId, handles, position, connectionPosition, selected, hovered, visible, showAddButton, showNotches, customPositionAndOffsets, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions, }: {
    nodeId: string;
    handles: ButtonHandleConfig[];
    position: Position;
    connectionPosition?: Position;
    selected?: boolean;
    hovered?: boolean;
    visible?: boolean;
    showAddButton?: boolean;
    showNotches?: boolean;
    customPositionAndOffsets?: HandleConfigurationSpecificPosition;
    nodeWidth?: number;
    nodeHeight?: number;
    portalActions?: boolean;
    shouldShowAddButtonFn?: ({ showAddButton, selected, hovered, }: {
        showAddButton: boolean;
        selected: boolean;
        hovered: boolean;
    }) => boolean;
}) => import("react/jsx-runtime").JSX.Element>;
export {};
//# sourceMappingURL=ButtonHandle.d.ts.map