import type { Logger } from '@zenstackhq/client-helpers'; import { type InvalidateFunc } from '@zenstackhq/client-helpers'; import { type FetchFn } from '@zenstackhq/client-helpers/fetch'; import type { TransactionOperation } from '@zenstackhq/client-helpers'; import type { SchemaDef } from '@zenstackhq/schema'; /** * Builds the mutation function for a sequential transaction request. */ export declare function makeTransactionMutationFn(endpoint: string, fetch: FetchFn | undefined): (operations: TransactionOperation[]) => Promise; /** * Builds the `onSuccess` handler for a sequential transaction mutation that invalidates * all queries affected by the operations in the transaction. * * @param schema The schema definition. * @param invalidateFunc Function that invalidates queries matching a predicate. * @param logging Logging option. * @param origOnSuccess The user-provided `onSuccess` callback to call after invalidation. */ export declare function makeTransactionOnSuccess(schema: SchemaDef, invalidateFunc: InvalidateFunc, logging: Logger | undefined, origOnSuccess: ((...args: any[]) => any) | undefined): (...args: any[]) => Promise;