import React, { FunctionComponent } from 'react'; import { Dispatch } from 'redux'; import { SubmissionMetadata, changeGroupVisibility, updateParamValue } from '../Actions/QuestionActions'; import { QuestionState } from '../StoreModules/QuestionStoreModule'; import { Props as FormProps } from '../Views/Question/DefaultQuestionForm'; import { GlobalData } from '../StoreModules/GlobalData'; import { RecordClass, Question } from '../Utils/WdkModel'; declare const ActionCreators: { updateParamValue: typeof updateParamValue; setGroupVisibility: typeof changeGroupVisibility; }; export declare type OwnProps = { question: string; recordClass: string; FormComponent?: (props: FormProps) => JSX.Element; submissionMetadata: SubmissionMetadata; submitButtonText?: string; shouldChangeDocumentTitle?: boolean; /** * Data to provide to parameters upon initialization. Data can be parameter * values, or it can be other content that the parameter can access and use * for initializing ui state. * * If a property's key is the same as a parameter name, then its value will * be used as that parameter's initial value. * * The entire object is also made available in the payload of the initParam * action, so that a param can interrogate the object for other special * keys. */ initialParamData?: Record; /** * If true, the form will be submitted automatically, and the browser will be * directed to the new strategy. Any errors will appear above the search form * and the user will be able to correct the errors. */ autoRun?: boolean; /** * If true, the form will be prepopulated with the param value * selections from the user's last visit to the form */ prepopulateWithLastParamValues?: boolean; }; declare type StateProps = QuestionState & { recordClasses: GlobalData['recordClasses']; }; declare type DispatchProps = { eventHandlers: typeof ActionCreators; dispatch: Dispatch; }; declare type Props = DispatchProps & StateProps & { searchName: string; recordClassName: string; FormComponent?: FunctionComponent; submissionMetadata: SubmissionMetadata; submitButtonText?: string; shouldChangeDocumentTitle?: boolean; initialParamData?: Record; autoRun: boolean; prepopulateWithLastParamValues: boolean; }; export declare const useSetSearchDocumentTitle: (question: Question | undefined, questionStatus: 'complete' | 'loading' | 'not-found' | 'error', recordClasses: RecordClass[] | undefined, outputRecordClass: RecordClass | undefined, shouldChangeDocumentTitle: boolean | undefined) => void; declare const _default: import("react-redux").ConnectedComponent, Pick> & DispatchProps & QuestionState & { recordClasses: RecordClass[] | undefined; } & { searchName: string; recordClassName: string; FormComponent?: React.FunctionComponent | undefined; submissionMetadata: SubmissionMetadata; submitButtonText?: string | undefined; shouldChangeDocumentTitle?: boolean | undefined; initialParamData?: Record | undefined; autoRun: boolean; prepopulateWithLastParamValues: boolean; }, "ref" | "key"> & OwnProps>; export default _default; //# sourceMappingURL=QuestionController.d.ts.map