import { Fields } from "payload/types"; export declare const useOnFieldChanges: (fields: Fields, callback: () => any) => void;