import type { Client } from '../../clients/createClient.js'; import type { Transport } from '../../clients/transports/createTransport.js'; import type { Account } from '../../types/account.js'; import type { Chain } from '../../types/chain.js'; import type { GetCallsStatusReturnType } from './getCallsStatus.js'; import { type SendCallsErrorType, type SendCallsParameters } from './sendCalls.js'; import { type WaitForCallsStatusParameters } from './waitForCallsStatus.js'; export type SendCallsSyncParameters = SendCallsParameters & Pick & { /** Timeout (ms) to wait for calls to be included in a block. @default chain.blockTime * 3 */ timeout?: number | undefined; }; export type SendCallsSyncReturnType = GetCallsStatusReturnType; export type SendCallsSyncErrorType = SendCallsErrorType; /** * Requests the connected wallet to send a batch of calls, and waits for the calls to be included in a block. * * - Docs: https://viem.sh/docs/actions/wallet/sendCallsSync * - JSON-RPC Methods: [`wallet_sendCalls`](https://eips.ethereum.org/EIPS/eip-5792) * * @param client - Client to use * @returns Calls status. {@link SendCallsSyncReturnType} * * @example * import { createWalletClient, custom } from 'viem' * import { mainnet } from 'viem/chains' * import { sendCalls } from 'viem/actions' * * const client = createWalletClient({ * chain: mainnet, * transport: custom(window.ethereum), * }) * const status = await sendCallsSync(client, { * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e', * calls: [ * { * data: '0xdeadbeef', * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', * }, * { * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', * value: 69420n, * }, * ], * }) */ export declare function sendCallsSync(client: Client, parameters: SendCallsSyncParameters): Promise; //# sourceMappingURL=sendCallsSync.d.ts.map