import { BigNumber } from 'ethers' import { SiweMessage } from 'siwe' import { DeviceData, NewSignerRequest, NewSignerRequestType, ProjectParams, RelayedTransaction, RelayedTransactionDetails, RelayTransactionType, SponsoredTransaction, UserNonceType, WalletInfos, WebAuthnSigner } from '../wallet/types' export declare class API { private readonly api constructor(apiKey: string, baseUrl?: string) getProjectParams(): Promise getNonce(walletAddress: string): Promise getWalletAddress(ownerAddress: string): Promise getWalletInfos(walletAddress: string): Promise getSponsoredAddresses(): Promise connect({ message, signature, walletAddress }: { message: SiweMessage signature: string walletAddress: string }): Promise relayTransaction({ walletAddress, safeTxData, signatures }: RelayTransactionType): Promise getRelayedTransaction(relayId: string): Promise initWallet({ ownerAddress }: { ownerAddress: string }): Promise initWalletWithWebAuthn({ walletAddress, publicKeyId, publicKeyX, publicKeyY, deviceData }: { walletAddress: string publicKeyId: string publicKeyX: string publicKeyY: string deviceData: DeviceData }): Promise importExternalSafe({ message, signature, walletAddress, signerAddress, deviceData, publicKeyId, publicKeyX, publicKeyY }: { message: string signature: string walletAddress: string signerAddress: string deviceData: DeviceData publicKeyId?: string publicKeyX?: string publicKeyY?: string }): Promise /** * User Section */ initWalletForUserID({ token, ownerAddress }: { token: string ownerAddress: string }): Promise createNewSignerRequest({ token, walletAddress, signerAddress, deviceData, type, publicKeyX, publicKeyY, publicKeyId }: { token: string walletAddress: string signerAddress: string deviceData: DeviceData type: NewSignerRequestType publicKeyId?: string publicKeyX?: string publicKeyY?: string }): Promise deleteNewSignerRequest({ token, signerAddress }: { token: string signerAddress: string }): Promise deployWebAuthnSigner({ token, walletAddress, publicKeyId, publicKeyX, publicKeyY, deviceData }: { token: string walletAddress: string publicKeyId: string publicKeyX: string publicKeyY: string deviceData: DeviceData }): Promise /** * WebAuthn Section */ predictWebAuthnSignerAddress({ publicKeyX, publicKeyY }: { publicKeyX: string publicKeyY: string }): Promise getWebAuthnSignerByPublicKeyId(publicKeyId: string): Promise getWebAuthnSignersByWalletAddress( walletAddress: string ): Promise /** * New signer request */ getNewSignerRequests( walletAddress: string ): Promise deployWebAuthnSignerAfterChecks( walletAddress: string, deviceData: DeviceData, publicKeyId: string, publicKeyX: string, publicKeyY: string ): Promise /** * Gas Price Section */ getGasPriceForToken(tokenAddress: string): Promise }