import { JsonFormsState, LayoutProps, OwnPropsOfLayout, UISchemaElement, OwnPropsOfControl, OwnPropsOfEnum, StatePropsOfControl, StatePropsOfArrayLayout, StatePropsOfControlWithDetail, OwnPropsOfMasterListItem, StatePropsOfMasterItem, AnyAction, OwnPropsOfCell, StatePropsOfCell, OwnPropsOfEnumCell, StatePropsOfEnumCell, CoreActions } from "@jsonforms/core"; import { Dispatch } from 'react'; import { CustomControlProps, DispatchArrayLayoutPropsOfControl, DispatchSubmitPropsOfLayout } from "./Types"; /** * Map state to Submit props. * @param state JSONForms state tree * @param ownProps any own props * @returns {StatePropsOfLayout} */ export declare const mapStateToSubmitProps: (state: JsonFormsState, ownProps: OwnPropsOfLayout | undefined) => any; /** * Map state to layout props. * @param state JSONForms state tree * @param ownProps any own props * @returns {StatePropsOfLayout} */ export declare const mapStateToLayoutProps: (state: JsonFormsState, ownProps: OwnPropsOfLayout | undefined) => LayoutProps; export declare const getDirection: (uischema: UISchemaElement) => "row" | "column"; /** * Map state to table props * * @param state the store's state * @param ownProps any element's own props * @returns {StatePropsOfArrayControl} state props for a table control */ export declare const mapStateToArrayLayoutProps: (state: JsonFormsState, ownProps: OwnPropsOfControl) => StatePropsOfArrayLayout; /** * Map state to control with detail props * * @param state the store's state * @param ownProps any element's own props * @returns {StatePropsOfArrayControl} state props for a table control */ export declare const mapStateToControlWithDetailProps: (state: JsonFormsState, ownProps: OwnPropsOfControl) => StatePropsOfControlWithDetail; /** * Map state to control props. * @param state the store's state * @param ownProps any own props * @returns {StatePropsOfControl} state props for a control */ export declare const mapStateToControlProps: (state: JsonFormsState, ownProps: OwnPropsOfControl & CustomControlProps) => StatePropsOfControl & CustomControlProps; /** * Map state to control props. * @param state the store's state * @param ownProps any own props * @returns {StatePropsOfControl} state props for a control */ export declare const mapStateToMasterListItemProps: (state: JsonFormsState, ownProps: OwnPropsOfMasterListItem) => StatePropsOfMasterItem; /** * Default mapStateToCellProps for multi enum control. Options is used for populating dropdown list * @param state * @param ownProps * @returns {} */ export declare const mapStateToEnumControlProps: (state: JsonFormsState, ownProps: OwnPropsOfControl & OwnPropsOfEnum & CustomControlProps) => StatePropsOfControl & OwnPropsOfEnum & CustomControlProps; export declare const mapDispatchToEnumProps: (dispatch: Dispatch) => DispatchArrayLayoutPropsOfControl; export declare const mapDispatchToSubmitProps: (dispatch: Dispatch) => DispatchSubmitPropsOfLayout; /** * Map state to cell props. * * @param state JSONForms state tree * @param ownProps any own props * @returns {StatePropsOfCell} state props of a cell */ export declare const mapStateToCellProps: (state: JsonFormsState, ownProps: OwnPropsOfCell) => StatePropsOfCell; /** * Default mapStateToCellProps for enum cell. Options is used for populating dropdown list * @param state * @param ownProps * @returns {StatePropsOfEnumCell} */ export declare const defaultMapStateToEnumCellProps: (state: JsonFormsState, ownProps: OwnPropsOfEnumCell) => StatePropsOfEnumCell; /** * Dispatch props of a table control */ export interface DispatchPropsOfArrayControl { addToTableItem?(path: string, value: any): () => void; addItem(path: string, value: any): () => void; removeItems?(path: string, toDelete: number[]): () => void; updateItem?(path: string, toUpdate: number[]): () => void; moveUp?(path: string, toMove: number): () => void; moveDown?(path: string, toMove: number): () => void; } /** * Maps state to dispatch properties of an array control. * * @param dispatch the store's dispatch method * @returns {DispatchPropsOfArrayControl} dispatch props of an array control */ export declare const mapDispatchToArrayControlProps: (dispatch: Dispatch) => DispatchPropsOfArrayControl;