import { List } from "../longan/gs.collections"; import { StepFlow } from "./stepFlow"; export declare enum StepType { begin = 1, end = 2, in = 3 } export declare class CommandStep { _name: string; _hint: string; _type: StepType; _buttons: Array; flow: StepFlow; condition: () => boolean; stepInEvent: (commandStep: CommandStep) => void; stepOutEvent: (commandStep: CommandStep) => void; handleTextEvent: (stepFlow: StepFlow, text: string) => string; handleButtonsEvent: (stepFlow: StepFlow, text: string) => void; listNexts: List; constructor(name?: string); get type(): StepType; name(value: string): CommandStep; hint(value: string): CommandStep; buttons(value: Array): this; in(value: (commandStep: CommandStep) => void): CommandStep; out(value: (commandStep: CommandStep) => void): CommandStep; handleText(value: (stepFlow: StepFlow, text: string) => string): CommandStep; handleButtons(value: (stepFlow: StepFlow, text: string) => void): CommandStep; next(steps: Array): CommandStep; end(): CommandStep; }