//#region src/core/use-overrides.d.ts
/**
 * The edits a page has saved that its loader has not re-run for, keyed by record id: what a drawer or
 * an inline control wrote, merged over the loader's rows until a fresh read replaces them.
 *
 * `onSaved` is the shape a drawer's `onSaved` callback takes: it fires before the write, and again
 * with the old value if the write fails, so the row moves at once and moves back on failure.
 */
declare function useOverrides<TPatch extends object>(): {
  /** What is pending for one record, or undefined when nobody has touched it. */
  of: (recordId: string) => TPatch | undefined;
  onSaved: (recordId: string, patch: TPatch) => void;
  /** Drops what is pending for one record, once a fresh read of it has replaced the row. */
  clear: (recordId: string) => void;
};
//#endregion
export { useOverrides };