import type { AnyRecord } from '@voiceflow/common'; import type { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port.js'; /** * @deprecated use BaseNode instead */ export type Node = { id: string; type: T; } & D; export interface BaseNode { id: string; type: string; } export type Point = [x: number, y: number]; export interface BaseDiagramNode { type: string; data: D; nodeID: string; coords?: Point; } export interface BaseNodeData { name?: string; } export interface BlockOnlyData extends BaseNodeData { name: string; color: string; steps: string[]; } export declare enum BaseNodeType { BLOCK = "block", ACTIONS = "actions" } export interface BaseBlock extends BaseDiagramNode { type: BaseNodeType.BLOCK; coords: Point; } export interface ActionsData extends BaseNodeData { steps: string[]; } export interface BaseActions extends BaseDiagramNode { type: BaseNodeType.ACTIONS; } export type StepPortsData = { ports?: never; portsV2: Ports; } | { ports: PortsOld; portsV2?: never; }; export type StepOnlyData = StepPortsData & BaseNodeData; export interface BaseStep extends BaseDiagramNode> { } export interface AnyBaseStep extends BaseStep { } //# sourceMappingURL=node.d.ts.map