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 type AbortContextStruct = {
    sender: BytesLike;
    asset: AddressLike;
    amount: BigNumberish;
    outgoing: boolean;
    chainID: BigNumberish;
    revertMessage: BytesLike;
};
export type AbortContextStructOutput = [
    sender: string,
    asset: string,
    amount: bigint,
    outgoing: boolean,
    chainID: bigint,
    revertMessage: string
] & {
    sender: string;
    asset: string;
    amount: bigint;
    outgoing: boolean;
    chainID: bigint;
    revertMessage: string;
};
export type MessageContextStruct = {
    sender: BytesLike;
    senderEVM: AddressLike;
    chainID: BigNumberish;
};
export type MessageContextStructOutput = [
    sender: string,
    senderEVM: string,
    chainID: bigint
] & {
    sender: string;
    senderEVM: string;
    chainID: bigint;
};
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 TestUniversalContractInterface extends Interface {
    getFunction(nameOrSignature: "onAbort" | "onCall" | "onRevert"): FunctionFragment;
    getEvent(nameOrSignatureOrTopic: "ContextData" | "ContextDataAbort" | "ContextDataRevert"): EventFragment;
    encodeFunctionData(functionFragment: "onAbort", values: [AbortContextStruct]): string;
    encodeFunctionData(functionFragment: "onCall", values: [MessageContextStruct, AddressLike, BigNumberish, BytesLike]): string;
    encodeFunctionData(functionFragment: "onRevert", values: [RevertContextStruct]): string;
    decodeFunctionResult(functionFragment: "onAbort", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "onCall", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result;
}
export declare namespace ContextDataEvent {
    type InputTuple = [
        origin: BytesLike,
        sender: AddressLike,
        chainID: BigNumberish,
        msgSender: AddressLike,
        message: string
    ];
    type OutputTuple = [
        origin: string,
        sender: string,
        chainID: bigint,
        msgSender: string,
        message: string
    ];
    interface OutputObject {
        origin: string;
        sender: string;
        chainID: bigint;
        msgSender: string;
        message: string;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ContextDataAbortEvent {
    type InputTuple = [abortContext: AbortContextStruct];
    type OutputTuple = [abortContext: AbortContextStructOutput];
    interface OutputObject {
        abortContext: AbortContextStructOutput;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ContextDataRevertEvent {
    type InputTuple = [revertContext: RevertContextStruct];
    type OutputTuple = [revertContext: RevertContextStructOutput];
    interface OutputObject {
        revertContext: RevertContextStructOutput;
    }
    type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    type Filter = TypedDeferredTopicFilter<Event>;
    type Log = TypedEventLog<Event>;
    type LogDescription = TypedLogDescription<Event>;
}
export interface TestUniversalContract extends BaseContract {
    connect(runner?: ContractRunner | null): TestUniversalContract;
    waitForDeployment(): Promise<this>;
    interface: TestUniversalContractInterface;
    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>;
    onAbort: TypedContractMethod<[
        abortContext: AbortContextStruct
    ], [
        void
    ], "nonpayable">;
    onCall: TypedContractMethod<[
        context: MessageContextStruct,
        arg1: AddressLike,
        arg2: BigNumberish,
        message: BytesLike
    ], [
        void
    ], "nonpayable">;
    onRevert: TypedContractMethod<[
        revertContext: RevertContextStruct
    ], [
        void
    ], "nonpayable">;
    getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
    getFunction(nameOrSignature: "onAbort"): TypedContractMethod<[
        abortContext: AbortContextStruct
    ], [
        void
    ], "nonpayable">;
    getFunction(nameOrSignature: "onCall"): TypedContractMethod<[
        context: MessageContextStruct,
        arg1: AddressLike,
        arg2: BigNumberish,
        message: BytesLike
    ], [
        void
    ], "nonpayable">;
    getFunction(nameOrSignature: "onRevert"): TypedContractMethod<[
        revertContext: RevertContextStruct
    ], [
        void
    ], "nonpayable">;
    getEvent(key: "ContextData"): TypedContractEvent<ContextDataEvent.InputTuple, ContextDataEvent.OutputTuple, ContextDataEvent.OutputObject>;
    getEvent(key: "ContextDataAbort"): TypedContractEvent<ContextDataAbortEvent.InputTuple, ContextDataAbortEvent.OutputTuple, ContextDataAbortEvent.OutputObject>;
    getEvent(key: "ContextDataRevert"): TypedContractEvent<ContextDataRevertEvent.InputTuple, ContextDataRevertEvent.OutputTuple, ContextDataRevertEvent.OutputObject>;
    filters: {
        "ContextData(bytes,address,uint256,address,string)": TypedContractEvent<ContextDataEvent.InputTuple, ContextDataEvent.OutputTuple, ContextDataEvent.OutputObject>;
        ContextData: TypedContractEvent<ContextDataEvent.InputTuple, ContextDataEvent.OutputTuple, ContextDataEvent.OutputObject>;
        "ContextDataAbort(tuple)": TypedContractEvent<ContextDataAbortEvent.InputTuple, ContextDataAbortEvent.OutputTuple, ContextDataAbortEvent.OutputObject>;
        ContextDataAbort: TypedContractEvent<ContextDataAbortEvent.InputTuple, ContextDataAbortEvent.OutputTuple, ContextDataAbortEvent.OutputObject>;
        "ContextDataRevert(tuple)": TypedContractEvent<ContextDataRevertEvent.InputTuple, ContextDataRevertEvent.OutputTuple, ContextDataRevertEvent.OutputObject>;
        ContextDataRevert: TypedContractEvent<ContextDataRevertEvent.InputTuple, ContextDataRevertEvent.OutputTuple, ContextDataRevertEvent.OutputObject>;
    };
}
