import { PortRecord as PortRecordType, Position } from '../../customTypings/index.d'; /** * @desc represent a Port attached to Node * @typedef {Immutable.Record} PortRecord */ /** * Test if the first parameter is a PortRecord instance * @param {Portrecord} port * @returns {bool} * @throws */ export declare function isPort(port: PortRecordType): boolean; /** * Test if the first parameter is a PortRecord, throw if not * @param {*} port * @returns {bool} * @throws */ export declare function isPortElseThrow(port: PortRecordType): boolean; /** * Check if the topology is one of the two accepted value * @param {*} topology * @return {bool} */ export declare function isTopologyElseThrow(topology: string): boolean; /** * @param {PortRecord} port * @returns {string} */ export declare function getId(port: PortRecordType): any; /** * @function * @param {string} id * @param {PortRecord} port * @returns {PortRecord} */ export declare const setId: import("lodash").CurriedFunction2; /** * @param {PortRecord} port * @return {string} */ export declare function getNodeId(port: PortRecordType): any; /** * @function * @param {string} nodeId * @param {PortRecord} port * @returns {PortRecord} */ export declare const setNodeId: import("lodash").CurriedFunction2; /** * @param {PortRecord} port * @returns {PositionRecord} */ export declare function getPosition(port: PortRecordType): any; /** * @function * @param {PositionRecord} position * @param {PortRecord} port * @returns {Port} */ export declare const setPosition: import("lodash").CurriedFunction2; /** * @param {PortRecord} port * @returns {string} */ export declare function getComponentType(port: PortRecordType): any; /** * @function * @param {string} componentType * @param {PortRecord} port * @returns {PortRecord} */ export declare const setComponentType: import("lodash").CurriedFunction2; /** * @param {PortRecord} port * @returns {string} */ export declare function getTopology(port: PortRecordType): any; /** * @function * @param {string} topology * @param {PortRecord} port * @returns {PortRecord} */ export declare const setTopology: import("lodash").CurriedFunction2; /** * Index is set per port type and per port, * so the renderer can order ports visually * @param {PortRecord} port * @returns {number} */ export declare function getIndex(port: PortRecordType): any; /** * @function * @param {number} index * @param {PortRecord} port * @returns {PortRecord} */ export declare const setIndex: import("lodash").CurriedFunction2; /** * @function * @param {string} key * @param {any} value * @param {PortRecord} port * @returns {PortRecord} */ export declare const setData: import("lodash").CurriedFunction3; /** * @function * @param {string} key * @param {PortRecord} port * @returns {any | null} */ export declare const getData: import("lodash").CurriedFunction2; /** * @function * @param {string} key * @param {PortRecord} port * @returns {bool} */ export declare const hasData: import("lodash").CurriedFunction2; /** * @function * @param {string} key * @param {PortRecord} port * @returns {PortRecord} */ export declare const deleteData: import("lodash").CurriedFunction2; /** * given a key check if that key is white listed * @param {string} key * @returns {bool} */ export declare function isWhiteListAttribute(key: string): boolean; /** * @function * @param {string} key * @param {any} value * @param {PortRecord} port * @returns {PortRecord} */ export declare const setGraphicalAttribute: import("lodash").CurriedFunction3; /** * @function * @param {string} key * @param {PortRecord} port * @returns {any | null} */ export declare const getGraphicalAttribute: import("lodash").CurriedFunction2; /** * @function * @param {string} key * @param {PortRecord} port * @returns {bool} */ export declare const hasGraphicalAttribute: import("lodash").CurriedFunction2; /** * @function * @param {string} key * @param {PortRecord} port * @returns {PortRecord} */ export declare const deleteGraphicalAttribute: import("lodash").CurriedFunction2; /** * minimal port creation factory, additionnals information can be set trought * the above set* functions * @function * @param {string} id * @param {string} nodeId * @param {number} index * @param {string} topology * @param {string} componentType * @returns {PortRecord} */ export declare const create: import("lodash").CurriedFunction5;