import { ethers, UnsignedTransaction } from "ethers"; import { BigNumber } from "ethers"; export type LitSignature = { r: string; s: string; recid: string; signature: string; publicKey: string; dataSigned: string; }; export type GasConfig = { maxFeePerGas: BigNumber | string; maxPriorityFeePerGas: BigNumber | string; gasLimit: BigNumber | string; }; export type LitERC20SwapCondition = { conditionType: "evmBasic"; contractAddress: string; standardContractType: "ERC20"; chain: string; method: "balanceOf"; parameters: [string]; returnValueTest: { comparator: ">="; value: string; }; }; export type LitSwapTransaction = { counterPartyAddress: string; tokenAddress: string; chain: string; amount: string; decimals: number; from?: string | undefined; nonce?: number | undefined; }; export type LitActionCodeResponseA = { response: { chainATransaction?: { counterPartyAddress: string; tokenAddress: string; chain: string; amount: string; decimals: number; from?: string | undefined; nonce?: number | undefined; }; chainBTransaction?: { counterPartyAddress: string; tokenAddress: string; chain: string; amount: string; decimals: number; from?: string | undefined; nonce?: number | undefined; }; }; signatures: { chainASignature?: any; chainBSignature?: any; }; }; export type LitActionCodeResponse = { response: { chainATransaction?: LitSwapTransaction; chainBTransaction?: LitSwapTransaction; }; signatures: { chainASignature?: any; chainBSignature?: any; }; }; export type LitERC20SwapParams = { counterPartyAddress: string; tokenAddress: string; chain: string; amount: string; decimals: number; }; export interface LitYachtSdkParams { signer?: ethers.Wallet; pkpContractAddress?: string; btcTestNet?: boolean; btcApiEndpoint?: string; } export declare const LitChainIds: { [key: string]: number; }; export declare enum CHAIN_NAME { "ethereum" = 0, "polygon" = 1, "fantom" = 2, "xdai" = 3, "bsc" = 4, "arbitrum" = 5, "avalanche" = 6, "fuji" = 7, "harmony" = 8, "kovan" = 9, "mumbai" = 10, "goerli" = 11, "ropsten" = 12, "rinkeby" = 13, "cronos" = 14, "optimism" = 15, "celo" = 16, "aurora" = 17, "eluvio" = 18, "alfajores" = 19, "xdc" = 20, "evmos" = 21, "evmosTestnet" = 22, "hardhat" = 23 } export type LitUnsignedTransaction = UnsignedTransaction & { from: string; }; export interface UTXO { txid: string; vout: number; status: { confirmed: boolean; block_height: number; block_hash: string; block_time: number; }; value: number; }