import type { Address } from "viem"; import type { InnerWalletApiClient } from "../../types.js"; import { type PrepareCallsParams } from "./prepareCalls.js"; import { type SendPreparedCallsResult } from "./sendPreparedCalls.js"; import type { SmartWalletSigner } from "../index.js"; export type SendCallsParams = PrepareCallsParams; export type SendCallsResult = SendPreparedCallsResult; /** * Prepares, signs, and submits calls. This function internally calls `prepareCalls`, `signPreparedCalls`, and `sendPreparedCalls`. * * * If using this action with an ERC-20 paymaster in pre-operation mode with `autoPermit`, the contents of the permit will be hidden * from the user. It is recommended to use the `prepareCalls` action instead to manually handle the permit signature. * * * @param {InnerWalletApiClient} client - The wallet API client to use for the request * @param {SmartAccountSigner} signer - The signer to use * @param {PrepareCallsParams} params - Parameters for sending calls * @param {Array<{to: Address, data?: Hex, value?: Hex}>} params.calls - Array of contract calls to execute * @param {Address} [params.from] - The address to execute the calls from (required if the client wasn't initialized with an account) * @param {object} [params.capabilities] - Optional capabilities to include with the request. See [API documentation](/wallets/api-reference/smart-wallets/wallet-api-endpoints/wallet-api-endpoints/wallet-prepare-calls#request.body.prepareCallsRequest.capabilities) for details. * @returns {Promise} A Promise that resolves to the result containing the call ID. * * @example * ```ts * const result = await client.sendCalls({ * calls: [{ * to: "0x1234...", * data: "0xabcdef...", * value: "0x0" * }], * capabilities: { * paymasterService: { policyId: "your-policy-id" } * } * }); * * // The result contains the call ID * console.log(result.id); * ``` */ export declare function sendCalls(client: InnerWalletApiClient, signer: SmartWalletSigner, params: SendCallsParams): Promise; //# sourceMappingURL=sendCalls.d.ts.map