import { TransactionReceipt, TransactionRequest, TransactionResponse } from '@ethersproject/abstract-provider'; import { VoidSigner } from '@ethersproject/abstract-signer'; import { Deferrable } from '@ethersproject/properties'; import { default as SafeApiKit } from '@safe-global/api-kit'; import { default as Safe } from '@safe-global/protocol-kit'; import { OperationType, SafeTransactionData } from '@safe-global/types-kit'; import { providers } from 'ethers'; import { SafeSupportedNetworks } from './constants'; export declare const mapReceipt: (receipt: providers.TransactionReceipt, safeTx: SafeTransactionData) => TransactionReceipt; export interface SafeTransactionResponse extends TransactionResponse { operation: OperationType; } export interface SafeEthersSignerOptions { pollingDelay?: number; apiKey?: string; } export declare class SafeEthersSigner extends VoidSigner { readonly safeAddress: string; readonly signerAddress: string; readonly chainId: SafeSupportedNetworks; readonly options?: SafeEthersSignerOptions; safe?: Safe; apiKit?: SafeApiKit; constructor(safeAddress: string, provider: providers.Web3Provider, signerAddress: string, chainId: SafeSupportedNetworks, options?: SafeEthersSignerOptions); createSafeInstance(): Promise; getSafeInstance(): Promise; createApiKitInstance(): Promise; getApiKitInstance(): Promise; getNextNonce(): Promise; buildTransactionResponse(safeTxHash: string, safeTx: SafeTransactionData): Promise; /** * Populates all fields in a transaction, signs it and sends it to the Safe transaction service * * @param transaction - The transaction what should be send * @returns A promise that resolves to a SafeTransactionReponse, that contains all the information of the transaction. */ sendTransaction(transaction: Deferrable): Promise; } //# sourceMappingURL=SafeEthersSigner.d.ts.map