import type { Nullable } from '@voiceflow/common'; import type { NodeType } from './constants'; import type { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope } from './utils'; /** * @deprecated use `actions` instead */ export declare enum ChoiceAction { PATH = "PATH", GO_TO = "GO_TO" } /** * @deprecated use `actions` instead */ export interface ChoiceGoTo { intentID: Nullable; diagramID?: Nullable; } export interface Choice extends SlotMappings { intent: string; /** * @deprecated use `actions` instead */ goTo?: ChoiceGoTo; /** * @deprecated use `actions` instead */ action?: ChoiceAction; } export interface StepData extends BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData { name: string; choices: Choice[]; /** * @deprecated use noMatch instead */ else?: BaseStepNoMatch; } export interface StepPorts extends NoMatchNoReplyStepPorts { } export interface Step extends BaseStep { type: NodeType.INTERACTION; } export interface NodeInteraction extends NodeNextID { event: Event; } export interface Node extends BaseNode, DeprecatedBaseNodeNoMatch, BaseNoReplyNodeData, NodeIntentScope, BaseNoMatchNodeData { type: NodeType.INTERACTION; interactions: NodeInteraction[]; platform?: string; } //# sourceMappingURL=interaction.d.ts.map