import { Question, RecordClass, RecordInstance, SearchConfig, AnswerSpec } from '../Utils/WdkModel'; import WdkService from '../Service/WdkService'; import { Step } from '../Utils/WdkUser'; export interface StepBundle { step: Step; question: Question; recordClass: RecordClass; } export interface AnswerSpecBundle { answerSpec: AnswerSpec; question: Question; recordClass: RecordClass; displayName: string; } /** * Fetches the step for the given ID and also finds the question and recordClass * for that step using the passed service. Returns a promise whose value is an * object with properties { step, question, recordClass }. */ export declare function getStepBundlePromise(stepId: number, service: WdkService): Promise; /** * Looks up the single-record question for the passed recordClass and applies the * passed primary key to create an search config for that question. Returns a promise * whose value is an object with properties { answerSpec, question, recordClass }. */ export declare function getSingleRecordStepBundlePromise(wdkService: WdkService): ([recordClass, recordInstance]: [RecordClass, RecordInstance]) => Promise; export declare function getStubbedStep(question: Question, displayName: string, estimatedSize: number, searchConfig: SearchConfig): Step; //# sourceMappingURL=stepUtils.d.ts.map