import { FieldValues, UseFormReturn } from "react-hook-form";
import { WithId } from "../../../../fd-toolbox-core/types/resource-with-id";
import { VoidFunc, VoidFuncNoParam } from "../../../../fd-toolbox/functions/internal-getter-setter-functions";
import { ResourceMeta } from "../../core/resource-meta";
import { UiResourceMeta } from "../../ui-resource-meta";
import { WithIndexer } from "../../../../fd-toolbox-core/types/with-indexer";
import { UiPropertyMeta } from "../../core/ui-property-meta";
export declare function onEditResourceValidation(uiResourceMeta: UiResourceMeta, form: UseFormReturn, leftUiPropertyMetas: WithIndexer<UiPropertyMeta>, rightUiPropertyMetas: WithIndexer<UiPropertyMeta>, formValues?: FieldValues): boolean;
export declare function onResourceSave(shouldCancel: boolean, handleValidation: () => boolean, form: UseFormReturn, resource: WithId, isNew: boolean, resourceMeta: ResourceMeta, setActiveSaveOperations: (value: number | ((value: number) => number)) => void, hasSavedOnce: boolean, setHasSavedOnce: VoidFunc<boolean>, setIsNew: VoidFunc<boolean>, onSaveClick?: VoidFunc<WithId>, onSaveComplete?: VoidFunc<boolean, string>, notifySaveComplete?: VoidFuncNoParam, onSavingStarting?: VoidFuncNoParam, onSavingEnding?: VoidFuncNoParam): Promise<void>;
