import { type PackedUserOperation, type UserOperation, type UserOperation06, type UserOperation07, type UserOperation08, type UserOperation09 } from "../types/index.js"; import { type Address, type Hex, type TransactionReceipt } from "viem"; import { type EntryPointVersion } from "viem/account-abstraction"; import type { AltoConfig } from "../createConfig.js"; export declare function isVersion06(operation: UserOperation): operation is UserOperation06; export declare function isVersion07(operation: UserOperation): operation is UserOperation07; export declare function isVersion08(operation: UserOperation, entryPointAddress: Address): operation is UserOperation07; export declare function isVersion09(operation: UserOperation, entryPointAddress: Address): operation is UserOperation07; export declare function validatePaymasterSignature({ userOp, entryPoint }: { userOp: UserOperation; entryPoint: Address; }): string | null; export declare function isDeployment(userOp: UserOperation): boolean; export declare function toViemUserOp(userOp: UserOperation07 | UserOperation08 | UserOperation09): { paymaster: `0x${string}` | undefined; paymasterData: `0x${string}` | undefined; paymasterVerificationGasLimit: bigint | undefined; paymasterPostOpGasLimit: bigint | undefined; factory: `0x${string}` | undefined; factoryData: `0x${string}` | undefined; authorization: { address: `0x${string}`; chainId: number; nonce: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v: bigint | undefined; } | undefined; sender: `0x${string}`; nonce: bigint; callData: `0x${string}`; callGasLimit: bigint; verificationGasLimit: bigint; preVerificationGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; signature: `0x${string}`; eip7702Auth?: { nonce: number; contractAddress: `0x${string}`; chainId: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v?: bigint | undefined; } | { address: `0x${string}`; nonce: number; chainId: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v?: bigint | undefined; } | null | undefined; } | { paymasterSignature: `0x${string}` | undefined; paymaster: `0x${string}` | undefined; paymasterData: `0x${string}` | undefined; paymasterVerificationGasLimit: bigint | undefined; paymasterPostOpGasLimit: bigint | undefined; factory: `0x${string}` | undefined; factoryData: `0x${string}` | undefined; authorization: { address: `0x${string}`; chainId: number; nonce: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v: bigint | undefined; } | undefined; sender: `0x${string}`; nonce: bigint; callData: `0x${string}`; callGasLimit: bigint; verificationGasLimit: bigint; preVerificationGas: bigint; maxFeePerGas: bigint; maxPriorityFeePerGas: bigint; signature: `0x${string}`; eip7702Auth?: { nonce: number; contractAddress: `0x${string}`; chainId: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v?: bigint | undefined; } | { address: `0x${string}`; nonce: number; chainId: number; r: `0x${string}`; s: `0x${string}`; yParity: number; v?: bigint | undefined; } | null | undefined; }; export declare function toPackedUserOp(unpacked: UserOperation07 | UserOperation08 | UserOperation09): PackedUserOperation; export declare function deepHexlify(obj: any): any; export declare function getAddressFromInitCodeOrPaymasterAndData(data: Hex): Address | null; export declare function getUserOpHash({ userOp, entryPointAddress, chainId }: { userOp: UserOperation; entryPointAddress: Address; chainId: number; }): Hex; export declare const getNonceKeyAndSequence: (nonce: bigint) => bigint[]; export declare function hasPaymaster(userOp: UserOperation): boolean; export declare function calculateRequiredPrefund(userOp: UserOperation): bigint; export declare function toUnpackedUserOp(packedUserOp: PackedUserOperation): UserOperation07; export declare function parseUserOpReceipt(userOpHash: Hex, receipt: TransactionReceipt): { sender: `0x${string}`; userOpHash: `0x${string}`; nonce: bigint; success: boolean; actualGasCost: bigint; actualGasUsed: bigint; entryPoint: `0x${string}`; logs: { address: `0x${string}`; data: `0x${string}`; transactionHash: `0x${string}`; logIndex: bigint; transactionIndex: bigint; blockHash: `0x${string}`; blockNumber: bigint; topics: `0x${string}`[]; }[]; receipt: { gasUsed: bigint; to: `0x${string}` | null; status: bigint | null; transactionHash: `0x${string}`; contractAddress: `0x${string}` | null; transactionIndex: bigint; blockHash: `0x${string}`; blockNumber: bigint; from: `0x${string}`; cumulativeGasUsed: bigint; logs: { address: `0x${string}`; data: `0x${string}`; transactionHash: `0x${string}`; logIndex: bigint; transactionIndex: bigint; blockHash: `0x${string}`; blockNumber: bigint; topics: `0x${string}`[]; }[]; logsBloom: string; effectiveGasPrice?: bigint | null | undefined; }; paymaster?: `0x${string}` | undefined; reason?: `0x${string}` | undefined; }; export declare const getViemEntryPointVersion: (userOp: UserOperation, entryPoint: Address) => EntryPointVersion; export declare const getEntryPointSimulationsAddress: ({ version, config }: { version: EntryPointVersion; config: AltoConfig; }) => Address | undefined; //# sourceMappingURL=userop.d.ts.map