import type { Account, Chain, Client, Transport } from "viem" import type { IsUndefined } from "viem/types/utils" import type { SmartAccount } from "../accounts/types" import type { EntryPoint } from "./entrypoint" import type { UserOperation } from "./userOperation" export type { UserOperation } export type { EntryPointVersion, ENTRYPOINT_ADDRESS_V06_TYPE, ENTRYPOINT_ADDRESS_V07_TYPE, GetEntryPointVersion, EntryPoint } from "./entrypoint" export type { PackedUserOperation } from "./userOperation" export type GetAccountParameterWithClient< TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined > = IsUndefined extends true ? { account: Account; client?: Client } : { client: Client; account?: Account } export type GetAccountParameter< entryPoint extends EntryPoint, TAccount extends SmartAccount | undefined = | SmartAccount | undefined > = IsUndefined extends true ? { account: SmartAccount } : { account?: SmartAccount } export type Prettify = { [K in keyof T]: T[K] } & {} export type PartialBy = Omit & Partial> export type PartialPick = Partial> // biome-ignore lint/suspicious/noExplicitAny: generic type export type UnionOmit = T extends any ? Omit : never