import { Dispatch, SetStateAction } from "react";
import { FieldValues, UseFormReturn } from "react-hook-form";
import { WithId } from "../../../../fd-toolbox-core/types/resource-with-id";
import { WithIndexer } from "../../../../fd-toolbox-core/types/with-indexer";
import { UiResourceMeta } from "../../ui-resource-meta";
import { UiPropertyMeta } from "../../core/ui-property-meta";
import { VoidFunc, VoidFuncNoParam } from "../../../../fd-toolbox/functions/internal-getter-setter-functions";
export declare function useEditResourceRef(form: UseFormReturn<FieldValues, FieldValues>, resource: WithId, isNew: boolean, uiResourceMeta: UiResourceMeta, formHasSavedOnce: boolean, setFormActiveSaveOperations: Dispatch<SetStateAction<number>>, setFormHasSavedOnce: VoidFunc<boolean>, setIsNew: VoidFunc<boolean>, notifySaveComplete: VoidFuncNoParam, leftUiPropertyMetas: WithIndexer<UiPropertyMeta>, rightUiPropertyMetas: WithIndexer<UiPropertyMeta>, onSavingStarting?: VoidFuncNoParam, onSavingEnding?: VoidFuncNoParam, onSaveComplete?: VoidFunc<boolean, string>, onSaveClick?: VoidFunc<WithId>): {
    save: (shouldCancel: boolean) => Promise<void>;
    getAllFormValues: () => FieldValues;
};
