import { PbEditorElement } from "../../../types"; import { UpdateElementActionArgsType } from "../../recoil/actions"; export type PostModifyElementArgs = { name: string; newValue: any; element: PbEditorElement; newElement: PbEditorElement; }; type UpdateHandlersPropsType = Omit & { history?: boolean; element: PbEditorElement; dataNamespace: string; postModifyElement?: (args: PostModifyElementArgs) => void; }; type UseUpdateHandlersType = (props: UpdateHandlersPropsType) => { getUpdateValue: (name: string) => (value: T) => void; getUpdatePreview: (name: string) => (value: T) => void; }; declare const useUpdateHandlers: UseUpdateHandlersType; export default useUpdateHandlers;