import type { Speed } from "@openzeppelin/relayer-sdk"; import type { PublicClient, WalletClient } from "viem"; import { type abis, type LevrChain, type LevrRelayerGroup } from "../../core"; import type { ContractTypeMap } from "../../core/contracts/contract-types"; import { type OnRelayerSubmit } from "./clients/ozRelayerService"; interface ClientOptions { relayer?: LevrRelayerGroup; walletClient?: WalletClient; publicClient?: PublicClient; /** Fires after the relayer accepts a tx, before on-chain confirmation.*/ onSubmit?: OnRelayerSubmit; /** Overrides the relayer group's default speed when this function creates the wallet client. */ speed?: Speed; } /** * Retrieves a Levr contract instance using a relayer if provided. * * @template T - The contract name, constrained to the keys of the `abis` object. * @param contractName - The name of the contract to retrieve. * @param chainId - The chain ID where the contract is deployed. * @param options - An object containing either a relayer or a wallet client. * @param options.relayer - (Optional) The relayer to use for contract interactions. * @param options.walletClient - (Optional) The wallet client to use for contract interactions. * @returns A promise that resolves to the contract instance typed according to the ABI. */ export declare function getLevrContractWithRelayer(contractName: T, chainId: LevrChain, { relayer, publicClient, walletClient, onSubmit, speed }: ClientOptions): Promise; export {};