import { RunStateResult } from './RunStateResult'; import * as choiceHelper from './helper/choiceHelper'; export interface Definition { StartAt?: string; States: { [key: string]: State; }; } export interface State { Type: string; Parameters?: Object; Input?: Object; InputPath?: string | null; Result?: Object; ResultPath?: string | null; Resource?: string; Choices?: choiceHelper.TopLevelChoiceRule[]; Default?: string; Next?: string; End?: boolean; } export type Resource = { [key: string]: (arg: any) => any; }; export declare class FakeStateMachine { definition: Definition; fakeResources: Resource; executionPath: Array; constructor(definition: Definition, fakeResources: Resource); run(input: object): Promise; runPartial(data: object, current: string, end: string): Promise; runCondition(data: object, _condition: any): Promise; runState(_data: object, stateName: string): Promise; static runStateTask(state: State, data: object, resource: (arg: any) => any): Promise; static runStatePass(state: State, data: object): object; static runStateChoice(state: State, data: any): string; static inputData(state: State, data: object): object; static resolveParameters(rawParameters: any, data: object): object; }