import type { Chain, Client, Transport } from "viem"; import type { SmartAccount } from "../../accounts/types"; import type { PartialPick } from "../../types"; import type { GetAccountParameter, PartialBy, Prettify, UserOperation } from "../../types"; import type { StateOverrides } from "../../types/bundler"; import type { ENTRYPOINT_ADDRESS_V06_TYPE, EntryPoint, GetEntryPointVersion } from "../../types/entrypoint"; export type SponsorUserOperationReturnType = entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE ? Prettify, "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymasterAndData"> & PartialPick, "maxFeePerGas" | "maxPriorityFeePerGas">> : Prettify, "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "paymaster" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit" | "paymasterData"> & PartialPick, "maxFeePerGas" | "maxPriorityFeePerGas">>; export type Middleware = { middleware?: ((args: { userOperation: UserOperation>; entryPoint: entryPoint; }) => Promise>>) | { gasPrice?: () => Promise<{ maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; }>; sponsorUserOperation?: (args: { userOperation: UserOperation>; entryPoint: entryPoint; }) => Promise>; }; }; export type PrepareUserOperationRequestParameters | undefined = SmartAccount | undefined> = { userOperation: entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE ? PartialBy, "sender" | "nonce" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "maxFeePerGas" | "maxPriorityFeePerGas" | "paymasterAndData" | "signature"> : PartialBy, "sender" | "nonce" | "factory" | "factoryData" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "maxFeePerGas" | "maxPriorityFeePerGas" | "paymaster" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit" | "paymasterData" | "signature">; } & GetAccountParameter & Middleware; export type PrepareUserOperationRequestReturnType = UserOperation>; export declare function prepareUserOperationRequest | undefined = SmartAccount | undefined>(client: Client, args: Prettify>, stateOverrides?: StateOverrides): Promise>>; //# sourceMappingURL=prepareUserOperationRequest.d.ts.map