import { type ClientMiddlewareFn } from "@aa-sdk/core"; import { type MultisigUserOperationContext } from "./types.js"; /** * A signer middleware to be used with Multisig Account Clients. * This middleware handles correctly aggregating signatures passed through * as context when sending UserOperations, proposing UserOperations, or adding signatures to a UserOperation. * * @param {Deferrable>} struct the user operation struct to be signed * @param {ClientMiddlewareArgs} args the parameters to be passed to the middleware * @param {UserOperationOverrides} args.account the account to be used for signing * @param {MiddlewareClient} args.client the smart account client that will be used for RPC requests * @param {MultisigUserOperationContext} args.context the context object containing the signatures to be aggregated MultisigUserOperationContext * @returns {Promise>>} a Promise containing a UserOperation with an aggregated signature in the `signature` field */ export declare const multisigSignatureMiddleware: ClientMiddlewareFn;