import { type Mutation } from './types.js';
/**
 * @public
 */
export interface Transaction {
    mutations: Mutation[];
    type: 'transaction';
    id?: string;
}
/**
 * @public
 *
 * Wraps a set of mutations in a transaction.
 * Note: use with caution. Transactions cannot be optimized and will be submitted one-by-one, which means they will make
 * your migration run slower and produce more API requests.
 * @param transactionId - The transaction ID. This is optional and should usually be omitted, as it will be auto-generated by the server if not provided.
 * @param mutations - The mutations to include in the transaction.
 *
 * {@link https://www.sanity.io/docs/http-mutations#afccc1b9ef78}
 */
export declare function transaction(transactionId: string, mutations: Mutation[]): Transaction;
/**
 * @public
 */
export declare function transaction(mutations: Mutation[]): Transaction;
//# sourceMappingURL=transaction.d.ts.map