import { Effect } from './types.js'; /** * Runs an action request and dispatches the effects from its response body, * whether the action succeeded or was rejected (non-2xx). Returns whether the * response was ok so callers run their own post-success cleanup (closing a * dialog, reloading a table) only on success; a rejected action leaves the * dialog open. A thrown/network error routes through dispatchActionError. */ export declare function runAction(request: () => Promise, dispatch: (effects: Effect[]) => void): Promise;