import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common";
export interface ZRC20Interface extends Interface {
    getFunction(nameOrSignature: "CHAIN_ID" | "COIN_TYPE" | "FUNGIBLE_MODULE_ADDRESS" | "GAS_LIMIT" | "PROTOCOL_FLAT_FEE" | "SYSTEM_CONTRACT_ADDRESS" | "allowance" | "approve" | "balanceOf" | "burn" | "decimals" | "deposit" | "gatewayAddress" | "name" | "setName" | "setSymbol" | "symbol" | "totalSupply" | "transfer" | "transferFrom" | "updateGasLimit" | "updateGatewayAddress" | "updateProtocolFlatFee" | "updateSystemContractAddress" | "withdraw" | "withdrawGasFee" | "withdrawGasFeeWithGasLimit"): FunctionFragment;
    getEvent(nameOrSignatureOrTopic: "Approval" | "Deposit" | "Transfer" | "UpdatedGasLimit" | "UpdatedGateway" | "UpdatedProtocolFlatFee" | "UpdatedSystemContract" | "Withdrawal"): EventFragment;
    encodeFunctionData(functionFragment: "CHAIN_ID", values?: undefined): string;
    encodeFunctionData(functionFragment: "COIN_TYPE", values?: undefined): string;
    encodeFunctionData(functionFragment: "FUNGIBLE_MODULE_ADDRESS", values?: undefined): string;
    encodeFunctionData(functionFragment: "GAS_LIMIT", values?: undefined): string;
    encodeFunctionData(functionFragment: "PROTOCOL_FLAT_FEE", values?: undefined): string;
    encodeFunctionData(functionFragment: "SYSTEM_CONTRACT_ADDRESS", values?: undefined): string;
    encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
    encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
    encodeFunctionData(functionFragment: "deposit", values: [AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "gatewayAddress", values?: undefined): string;
    encodeFunctionData(functionFragment: "name", values?: undefined): string;
    encodeFunctionData(functionFragment: "setName", values: [string]): string;
    encodeFunctionData(functionFragment: "setSymbol", values: [string]): string;
    encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
    encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
    encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "updateGasLimit", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "updateGatewayAddress", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "updateProtocolFlatFee", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "updateSystemContractAddress", values: [AddressLike]): string;
    encodeFunctionData(functionFragment: "withdraw", values: [BytesLike, BigNumberish]): string;
    encodeFunctionData(functionFragment: "withdrawGasFee", values?: undefined): string;
    encodeFunctionData(functionFragment: "withdrawGasFeeWithGasLimit", values: [BigNumberish]): string;
    decodeFunctionResult(functionFragment: "CHAIN_ID", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "COIN_TYPE", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "FUNGIBLE_MODULE_ADDRESS", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "GAS_LIMIT", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "PROTOCOL_FLAT_FEE", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "SYSTEM_CONTRACT_ADDRESS", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "gatewayAddress", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setName", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setSymbol", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateGasLimit", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateGatewayAddress", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateProtocolFlatFee", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateSystemContractAddress", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "withdrawGasFee", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "withdrawGasFeeWithGasLimit", data: BytesLike): Result;
}
export declare namespace ApprovalEvent {
    type InputTuple = [
        owner: AddressLike,
        spender: AddressLike,
        value: BigNumberish
    ];
    type OutputTuple = [owner: string, spender: string, value: bigint];
    interface OutputObject {
        owner: string;
        spender: string;
        value: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace DepositEvent {
    type InputTuple = [
        from: BytesLike,
        to: AddressLike,
        value: BigNumberish
    ];
    type OutputTuple = [from: string, to: string, value: bigint];
    interface OutputObject {
        from: string;
        to: string;
        value: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace TransferEvent {
    type InputTuple = [
        from: AddressLike,
        to: AddressLike,
        value: BigNumberish
    ];
    type OutputTuple = [from: string, to: string, value: bigint];
    interface OutputObject {
        from: string;
        to: string;
        value: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UpdatedGasLimitEvent {
    type InputTuple = [gasLimit: BigNumberish];
    type OutputTuple = [gasLimit: bigint];
    interface OutputObject {
        gasLimit: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UpdatedGatewayEvent {
    type InputTuple = [gateway: AddressLike];
    type OutputTuple = [gateway: string];
    interface OutputObject {
        gateway: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UpdatedProtocolFlatFeeEvent {
    type InputTuple = [protocolFlatFee: BigNumberish];
    type OutputTuple = [protocolFlatFee: bigint];
    interface OutputObject {
        protocolFlatFee: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UpdatedSystemContractEvent {
    type InputTuple = [systemContract: AddressLike];
    type OutputTuple = [systemContract: string];
    interface OutputObject {
        systemContract: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace WithdrawalEvent {
    type InputTuple = [
        from: AddressLike,
        to: BytesLike,
        value: BigNumberish,
        gasFee: BigNumberish,
        protocolFlatFee: BigNumberish
    ];
    type OutputTuple = [
        from: string,
        to: string,
        value: bigint,
        gasFee: bigint,
        protocolFlatFee: bigint
    ];
    interface OutputObject {
        from: string;
        to: string;
        value: bigint;
        gasFee: bigint;
        protocolFlatFee: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export interface ZRC20 extends BaseContract {
    connect(runner?: ContractRunner | null): ZRC20;
    waitForDeployment(): Promise<this>;
    interface: ZRC20Interface;
    queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
    on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
    once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
    listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
    listeners(eventName?: string): Promise<Array<Listener>>;
    removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
    CHAIN_ID: TypedContractMethod<[], [bigint], "view">;
    COIN_TYPE: TypedContractMethod<[], [bigint], "view">;
    FUNGIBLE_MODULE_ADDRESS: TypedContractMethod<[], [string], "view">;
    GAS_LIMIT: TypedContractMethod<[], [bigint], "view">;
    PROTOCOL_FLAT_FEE: TypedContractMethod<[], [bigint], "view">;
    SYSTEM_CONTRACT_ADDRESS: TypedContractMethod<[], [string], "view">;
    allowance: TypedContractMethod<[
        owner: AddressLike,
        spender: AddressLike
    ], [
        bigint
    ], "view">;
    approve: TypedContractMethod<[
        spender: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
    burn: TypedContractMethod<[amount: BigNumberish], [boolean], "nonpayable">;
    decimals: TypedContractMethod<[], [bigint], "view">;
    deposit: TypedContractMethod<[
        to: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    gatewayAddress: TypedContractMethod<[], [string], "view">;
    name: TypedContractMethod<[], [string], "view">;
    setName: TypedContractMethod<[newName: string], [void], "nonpayable">;
    setSymbol: TypedContractMethod<[newSymbol: string], [void], "nonpayable">;
    symbol: TypedContractMethod<[], [string], "view">;
    totalSupply: TypedContractMethod<[], [bigint], "view">;
    transfer: TypedContractMethod<[
        recipient: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    transferFrom: TypedContractMethod<[
        sender: AddressLike,
        recipient: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    updateGasLimit: TypedContractMethod<[
        gasLimit_: BigNumberish
    ], [
        void
    ], "nonpayable">;
    updateGatewayAddress: TypedContractMethod<[
        addr: AddressLike
    ], [
        void
    ], "nonpayable">;
    updateProtocolFlatFee: TypedContractMethod<[
        protocolFlatFee_: BigNumberish
    ], [
        void
    ], "nonpayable">;
    updateSystemContractAddress: TypedContractMethod<[
        addr: AddressLike
    ], [
        void
    ], "nonpayable">;
    withdraw: TypedContractMethod<[
        to: BytesLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    withdrawGasFee: TypedContractMethod<[], [[string, bigint]], "view">;
    withdrawGasFeeWithGasLimit: TypedContractMethod<[
        gasLimit: BigNumberish
    ], [
        [string, bigint]
    ], "view">;
    getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
    getFunction(nameOrSignature: "CHAIN_ID"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "COIN_TYPE"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "FUNGIBLE_MODULE_ADDRESS"): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature: "GAS_LIMIT"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "PROTOCOL_FLAT_FEE"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "SYSTEM_CONTRACT_ADDRESS"): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
        owner: AddressLike,
        spender: AddressLike
    ], [
        bigint
    ], "view">;
    getFunction(nameOrSignature: "approve"): TypedContractMethod<[
        spender: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature: "burn"): TypedContractMethod<[amount: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "deposit"): TypedContractMethod<[
        to: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "gatewayAddress"): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature: "setName"): TypedContractMethod<[newName: string], [void], "nonpayable">;
    getFunction(nameOrSignature: "setSymbol"): TypedContractMethod<[newSymbol: string], [void], "nonpayable">;
    getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
        recipient: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
        sender: AddressLike,
        recipient: AddressLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "updateGasLimit"): TypedContractMethod<[gasLimit_: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature: "updateGatewayAddress"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature: "updateProtocolFlatFee"): TypedContractMethod<[
        protocolFlatFee_: BigNumberish
    ], [
        void
    ], "nonpayable">;
    getFunction(nameOrSignature: "updateSystemContractAddress"): TypedContractMethod<[addr: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
        to: BytesLike,
        amount: BigNumberish
    ], [
        boolean
    ], "nonpayable">;
    getFunction(nameOrSignature: "withdrawGasFee"): TypedContractMethod<[], [[string, bigint]], "view">;
    getFunction(nameOrSignature: "withdrawGasFeeWithGasLimit"): TypedContractMethod<[gasLimit: BigNumberish], [[string, bigint]], "view">;
    getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
    getEvent(key: "Deposit"): TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
    getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
    getEvent(key: "UpdatedGasLimit"): TypedContractEvent<UpdatedGasLimitEvent.InputTuple, UpdatedGasLimitEvent.OutputTuple, UpdatedGasLimitEvent.OutputObject>;
    getEvent(key: "UpdatedGateway"): TypedContractEvent<UpdatedGatewayEvent.InputTuple, UpdatedGatewayEvent.OutputTuple, UpdatedGatewayEvent.OutputObject>;
    getEvent(key: "UpdatedProtocolFlatFee"): TypedContractEvent<UpdatedProtocolFlatFeeEvent.InputTuple, UpdatedProtocolFlatFeeEvent.OutputTuple, UpdatedProtocolFlatFeeEvent.OutputObject>;
    getEvent(key: "UpdatedSystemContract"): TypedContractEvent<UpdatedSystemContractEvent.InputTuple, UpdatedSystemContractEvent.OutputTuple, UpdatedSystemContractEvent.OutputObject>;
    getEvent(key: "Withdrawal"): TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
    filters: {
        "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
        Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
        "Deposit(bytes,address,uint256)": TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
        Deposit: TypedContractEvent<DepositEvent.InputTuple, DepositEvent.OutputTuple, DepositEvent.OutputObject>;
        "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
        Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
        "UpdatedGasLimit(uint256)": TypedContractEvent<UpdatedGasLimitEvent.InputTuple, UpdatedGasLimitEvent.OutputTuple, UpdatedGasLimitEvent.OutputObject>;
        UpdatedGasLimit: TypedContractEvent<UpdatedGasLimitEvent.InputTuple, UpdatedGasLimitEvent.OutputTuple, UpdatedGasLimitEvent.OutputObject>;
        "UpdatedGateway(address)": TypedContractEvent<UpdatedGatewayEvent.InputTuple, UpdatedGatewayEvent.OutputTuple, UpdatedGatewayEvent.OutputObject>;
        UpdatedGateway: TypedContractEvent<UpdatedGatewayEvent.InputTuple, UpdatedGatewayEvent.OutputTuple, UpdatedGatewayEvent.OutputObject>;
        "UpdatedProtocolFlatFee(uint256)": TypedContractEvent<UpdatedProtocolFlatFeeEvent.InputTuple, UpdatedProtocolFlatFeeEvent.OutputTuple, UpdatedProtocolFlatFeeEvent.OutputObject>;
        UpdatedProtocolFlatFee: TypedContractEvent<UpdatedProtocolFlatFeeEvent.InputTuple, UpdatedProtocolFlatFeeEvent.OutputTuple, UpdatedProtocolFlatFeeEvent.OutputObject>;
        "UpdatedSystemContract(address)": TypedContractEvent<UpdatedSystemContractEvent.InputTuple, UpdatedSystemContractEvent.OutputTuple, UpdatedSystemContractEvent.OutputObject>;
        UpdatedSystemContract: TypedContractEvent<UpdatedSystemContractEvent.InputTuple, UpdatedSystemContractEvent.OutputTuple, UpdatedSystemContractEvent.OutputObject>;
        "Withdrawal(address,bytes,uint256,uint256,uint256)": TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
        Withdrawal: TypedContractEvent<WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject>;
    };
}
