import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener } from "../common";
export type RevertContextStruct = {
    sender: AddressLike;
    asset: AddressLike;
    amount: BigNumberish;
    revertMessage: BytesLike;
};
export type RevertContextStructOutput = [
    sender: string,
    asset: string,
    amount: bigint,
    revertMessage: string
] & {
    sender: string;
    asset: string;
    amount: bigint;
    revertMessage: string;
};
export interface IERC20CustodyEventsInterface extends Interface {
    getEvent(nameOrSignatureOrTopic: "Deposited" | "Unwhitelisted" | "UpdatedCustodyTSSAddress" | "Whitelisted" | "Withdrawn" | "WithdrawnAndCalled" | "WithdrawnAndReverted"): EventFragment;
}
export declare namespace DepositedEvent {
    type InputTuple = [
        recipient: BytesLike,
        asset: AddressLike,
        amount: BigNumberish,
        message: BytesLike
    ];
    type OutputTuple = [
        recipient: string,
        asset: string,
        amount: bigint,
        message: string
    ];
    interface OutputObject {
        recipient: string;
        asset: string;
        amount: bigint;
        message: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UnwhitelistedEvent {
    type InputTuple = [token: AddressLike];
    type OutputTuple = [token: string];
    interface OutputObject {
        token: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace UpdatedCustodyTSSAddressEvent {
    type InputTuple = [
        oldTSSAddress: AddressLike,
        newTSSAddress: AddressLike
    ];
    type OutputTuple = [oldTSSAddress: string, newTSSAddress: string];
    interface OutputObject {
        oldTSSAddress: string;
        newTSSAddress: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace WhitelistedEvent {
    type InputTuple = [token: AddressLike];
    type OutputTuple = [token: string];
    interface OutputObject {
        token: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace WithdrawnEvent {
    type InputTuple = [
        to: AddressLike,
        token: AddressLike,
        amount: BigNumberish
    ];
    type OutputTuple = [to: string, token: string, amount: bigint];
    interface OutputObject {
        to: string;
        token: string;
        amount: bigint;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace WithdrawnAndCalledEvent {
    type InputTuple = [
        to: AddressLike,
        token: AddressLike,
        amount: BigNumberish,
        data: BytesLike
    ];
    type OutputTuple = [
        to: string,
        token: string,
        amount: bigint,
        data: string
    ];
    interface OutputObject {
        to: string;
        token: string;
        amount: bigint;
        data: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace WithdrawnAndRevertedEvent {
    type InputTuple = [
        to: AddressLike,
        token: AddressLike,
        amount: BigNumberish,
        data: BytesLike,
        revertContext: RevertContextStruct
    ];
    type OutputTuple = [
        to: string,
        token: string,
        amount: bigint,
        data: string,
        revertContext: RevertContextStructOutput
    ];
    interface OutputObject {
        to: string;
        token: string;
        amount: bigint;
        data: string;
        revertContext: RevertContextStructOutput;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export interface IERC20CustodyEvents extends BaseContract {
    connect(runner?: ContractRunner | null): IERC20CustodyEvents;
    waitForDeployment(): Promise<this>;
    interface: IERC20CustodyEventsInterface;
    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>;
    getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
    getEvent(key: "Deposited"): TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
    getEvent(key: "Unwhitelisted"): TypedContractEvent<UnwhitelistedEvent.InputTuple, UnwhitelistedEvent.OutputTuple, UnwhitelistedEvent.OutputObject>;
    getEvent(key: "UpdatedCustodyTSSAddress"): TypedContractEvent<UpdatedCustodyTSSAddressEvent.InputTuple, UpdatedCustodyTSSAddressEvent.OutputTuple, UpdatedCustodyTSSAddressEvent.OutputObject>;
    getEvent(key: "Whitelisted"): TypedContractEvent<WhitelistedEvent.InputTuple, WhitelistedEvent.OutputTuple, WhitelistedEvent.OutputObject>;
    getEvent(key: "Withdrawn"): TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
    getEvent(key: "WithdrawnAndCalled"): TypedContractEvent<WithdrawnAndCalledEvent.InputTuple, WithdrawnAndCalledEvent.OutputTuple, WithdrawnAndCalledEvent.OutputObject>;
    getEvent(key: "WithdrawnAndReverted"): TypedContractEvent<WithdrawnAndRevertedEvent.InputTuple, WithdrawnAndRevertedEvent.OutputTuple, WithdrawnAndRevertedEvent.OutputObject>;
    filters: {
        "Deposited(bytes,address,uint256,bytes)": TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
        Deposited: TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
        "Unwhitelisted(address)": TypedContractEvent<UnwhitelistedEvent.InputTuple, UnwhitelistedEvent.OutputTuple, UnwhitelistedEvent.OutputObject>;
        Unwhitelisted: TypedContractEvent<UnwhitelistedEvent.InputTuple, UnwhitelistedEvent.OutputTuple, UnwhitelistedEvent.OutputObject>;
        "UpdatedCustodyTSSAddress(address,address)": TypedContractEvent<UpdatedCustodyTSSAddressEvent.InputTuple, UpdatedCustodyTSSAddressEvent.OutputTuple, UpdatedCustodyTSSAddressEvent.OutputObject>;
        UpdatedCustodyTSSAddress: TypedContractEvent<UpdatedCustodyTSSAddressEvent.InputTuple, UpdatedCustodyTSSAddressEvent.OutputTuple, UpdatedCustodyTSSAddressEvent.OutputObject>;
        "Whitelisted(address)": TypedContractEvent<WhitelistedEvent.InputTuple, WhitelistedEvent.OutputTuple, WhitelistedEvent.OutputObject>;
        Whitelisted: TypedContractEvent<WhitelistedEvent.InputTuple, WhitelistedEvent.OutputTuple, WhitelistedEvent.OutputObject>;
        "Withdrawn(address,address,uint256)": TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
        Withdrawn: TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
        "WithdrawnAndCalled(address,address,uint256,bytes)": TypedContractEvent<WithdrawnAndCalledEvent.InputTuple, WithdrawnAndCalledEvent.OutputTuple, WithdrawnAndCalledEvent.OutputObject>;
        WithdrawnAndCalled: TypedContractEvent<WithdrawnAndCalledEvent.InputTuple, WithdrawnAndCalledEvent.OutputTuple, WithdrawnAndCalledEvent.OutputObject>;
        "WithdrawnAndReverted(address,address,uint256,bytes,tuple)": TypedContractEvent<WithdrawnAndRevertedEvent.InputTuple, WithdrawnAndRevertedEvent.OutputTuple, WithdrawnAndRevertedEvent.OutputObject>;
        WithdrawnAndReverted: TypedContractEvent<WithdrawnAndRevertedEvent.InputTuple, WithdrawnAndRevertedEvent.OutputTuple, WithdrawnAndRevertedEvent.OutputObject>;
    };
}
