export default class BasePort extends EventEmitter { /** * @param {BaseOptions} options */ constructor(options: BaseOptions); options: BaseOptions; /** @type {Array} */ sockets: Array; /** @type {string|null} */ node: string | null; /** @type {import("./Component").Component|null} */ nodeInstance: import("./Component").Component | null; /** @type {string|null} */ name: string | null; getId(): string; /** * @returns {string} */ getDataType(): string; getSchema(): string; getDescription(): string; /** * @param {import("./InternalSocket").InternalSocket} socket * @param {number|null} [index] */ attach(socket: import("./InternalSocket").InternalSocket, index?: number | null): void; /** * @param {import("./InternalSocket").InternalSocket} socket * @param {number|null} [index] */ attachSocket(socket: import("./InternalSocket").InternalSocket, index?: number | null): void; /** * @param {import("./InternalSocket").InternalSocket} socket */ detach(socket: import("./InternalSocket").InternalSocket): void; isAddressable(): boolean; isBuffered(): boolean; isRequired(): boolean; /** * @param {number|null} socketId * @returns {boolean} */ isAttached(socketId?: number | null): boolean; listAttached(): number[]; /** * @param {number|null} socketId * @returns {boolean} */ isConnected(socketId?: number | null): boolean; canAttach(): boolean; } /** * - Options for configuring all types of ports */ export type BaseOptions = { description?: string; addressable?: boolean; buffered?: boolean; datatype?: string; schema?: string; type?: string; required?: boolean; scoped?: boolean; }; import { EventEmitter } from "events";