import { Id, PortData, PortGraphicalAttributes, Port, PortAction, PortActionAdd } from '../customTypings/index.d'; /** * return an action to create a new port * @param {string} nodeId - identifier of the node to wich the created connector should be attached * @param {string} id * @param {Object} attributes */ export declare function addPort(nodeId: Id, id: Id, { data, graphicalAttributes, }: { data?: PortData; graphicalAttributes?: PortGraphicalAttributes; }): PortActionAdd; /** * @deprecated */ export declare function addPorts(nodeId: Id, ports: Array): PortAction; /** * return an action to set port attributes * @deprecated * @param {string} portId * @param {Object} graphicalAttributes */ export declare function setPortGraphicalAttribute(portId: Id, graphicalAttributes: {}): PortAction; /** * Ask to remove an attribute on target port * @deprecated * @param {string} portId * @param {string} graphicalAttributesKey - the key of the attribute to be removed */ export declare function removePortGraphicalAttribute(portId: Id, graphicalAttributesKey: string): PortAction; /** * return an action to set port attributes * @deprecated * @param {string} portId * @param {Object} graphicalAttributes */ export declare function setPortdata(portId: Id, data: Object): PortAction; /** * Ask to remove an attribute on target port * @deprecated * @param {string} portId * @param {string} datasKey - the key of the attribute to be removed */ export declare function removePortData(portId: Id, dataKey: string): PortAction; /** * return an action to remove port and all attached links * @deprecated use deletePort action * @param {string} portId */ export declare function removePort(portId: Id): PortAction;