import { type QueryKey, type UseMutationOptions, type UseMutationResult } from "@tanstack/react-query"; export type MutationMeta = { /** Query keys to invalidate on success — replaces hand-written onSuccess wiring. */ invalidates?: QueryKey[]; }; declare module "@tanstack/react-query" { interface Register { mutationMeta: MutationMeta; } } /** * Standard mutation wrapper. Honours `meta.invalidates` so domain hooks declare * what to refetch instead of hand-writing onSuccess. Errors are owned by the * caller's feature boundary (DynamicForm's scope.run), not a global handler — so * the success/error toast carries feature context, with the policy on the tree node. */ export declare function useMutationPipeline(options: UseMutationOptions): UseMutationResult; //# sourceMappingURL=useMutationPipeline.d.ts.map