import type { TypedDataDomain, TypedDataField } from "../hash/index.js";
import type { TransactionLike } from "../transaction/index.js";
import type { BlockTag, Provider, TransactionRequest, TransactionResponse } from "./provider.js";
import type { Signer } from "./signer.js";
export declare abstract class AbstractSigner
implements Signer {
readonly provider: P;
constructor(provider?: P);
abstract getAddress(): Promise;
abstract connect(provider: null | Provider): Signer;
getNonce(blockTag?: BlockTag): Promise;
populateCall(tx: TransactionRequest): Promise>;
populateTransaction(tx: TransactionRequest): Promise>;
estimateGas(tx: TransactionRequest): Promise;
call(tx: TransactionRequest): Promise;
resolveName(name: string): Promise;
sendTransaction(tx: TransactionRequest): Promise;
abstract signTransaction(tx: TransactionRequest): Promise;
abstract signMessage(message: string | Uint8Array): Promise;
abstract signTypedData(domain: TypedDataDomain, types: Record>, value: Record): Promise;
}
export declare class VoidSigner extends AbstractSigner {
#private;
readonly address: string;
constructor(address: string, provider?: null | Provider);
getAddress(): Promise;
connect(provider: null | Provider): VoidSigner;
signTransaction(tx: TransactionRequest): Promise;
signMessage(message: string | Uint8Array): Promise;
signTypedData(domain: TypedDataDomain, types: Record>, value: Record): Promise;
}