import { ActionThunk, EmptyAction } from '../Core/WdkMiddleware'; import { UserPreferences } from '../Utils/WdkUser'; import { Question, RecordClass } from '../Utils/WdkModel'; import { CategoryOntology } from '../Utils/CategoryUtils'; import { ResultType } from '../Utils/WdkResult'; export declare type Action = InitializeAction | SelectReporterAction | SetErrorAction | StartLoadingAction | UpdateFormAction | UpdateFormUiAction; export declare const START_LOADING = "downloadForm/start-loading"; export interface StartLoadingAction { type: typeof START_LOADING; } export declare function startLoading(): StartLoadingAction; export declare const INITIALIZE = "downloadForm/initialize"; export interface InitializeAction { type: typeof INITIALIZE; payload: { resultType: ResultType; question: Question; recordClass: RecordClass; scope: string; preferences: UserPreferences; ontology: CategoryOntology; }; } export declare function initialize(data: InitializeAction['payload']): InitializeAction; export declare const SELECT_REPORTER = "downloadForm/select-reporter"; export declare type ReporterSelection = string | number; export interface SelectReporterAction { type: typeof SELECT_REPORTER; payload: { selectedReporter?: ReporterSelection; }; } export declare function selectReporter(selectedReporter?: ReporterSelection): SelectReporterAction; export declare const UPDATE_FORM = "downloadForm/update-form"; export interface UpdateFormAction { type: typeof UPDATE_FORM; payload: { formState: any; }; } export declare function updateForm(formState: any): UpdateFormAction; export declare const UPDATE_FORM_UI = "downloadForm/update-form-ui"; export interface UpdateFormUiAction { type: typeof UPDATE_FORM_UI; payload: { formUiState: any; }; } export declare function updateFormUi(formUiState: any): UpdateFormUiAction; export declare const SET_ERROR = "downloadForm/set-error"; export interface SetErrorAction { type: typeof SET_ERROR; payload: { error: Error; }; } export declare function setError(error: Error): SetErrorAction; declare type LoadPageDataAction = StartLoadingAction | SetErrorAction | InitializeAction | SelectReporterAction; export declare function loadPageDataFromStepId(stepId: number, requestedFormat?: ReporterSelection): ActionThunk; export declare function loadPageDataFromRecord(recordClassUrlSegment: string, primaryKeyString: string, requestedFormat?: ReporterSelection): ActionThunk; export declare function loadPageDataFromBasketName(basketName: string, requestedFormat?: ReporterSelection): ActionThunk; export declare function loadPageDataFromSearchConfig(searchName: string, paramValues: Record, weight: number, requestedFormat?: ReporterSelection): ActionThunk; export declare function submitForm(resultType: ResultType, selectedReporter: string, formState: any, target?: string): ActionThunk; export {}; //# sourceMappingURL=DownloadFormActions.d.ts.map