/** * Inline commits that are still writing, app-wide. * * An inline editor commits on BLUR, so pressing an action while a field is focused * starts TWO things in ONE gesture, and a handler that re-reads the record would * otherwise overtake the write and act on the PRE-EDIT value — silently. * * `useFieldCommit` registers every commit here and `Button`/`IconButton` hold their * press for the ones already in flight, so the press lands AFTER the edit that * caused it. There is nothing for an app to wire up. */ /** Register a commit. Returns it UNCHANGED — the gate only needs to know when the * write SETTLED, so a failed commit releases it like a successful one. */ export declare function trackCommit(commit: Promise): Promise; /** The commits in flight RIGHT NOW, or `null` when there are none, so a caller * takes its synchronous path. Commits started after this call are deliberately * NOT awaited: the gate holds a press for the edit that caused it. */ export declare function pendingCommits(): Promise | null;