import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../common";
export interface ForwarderInterfaceInterface extends utils.Interface {
    functions: {
        "relayMessage(address,uint256,bytes)": FunctionFragment;
        "relayTokens(address,address,uint256,uint256,address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "relayMessage" | "relayTokens"): FunctionFragment;
    encodeFunctionData(functionFragment: "relayMessage", values: [string, BigNumberish, BytesLike]): string;
    encodeFunctionData(functionFragment: "relayTokens", values: [string, string, BigNumberish, BigNumberish, string]): string;
    decodeFunctionResult(functionFragment: "relayMessage", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "relayTokens", data: BytesLike): Result;
    events: {
        "MessageForwarded(address,uint256,bytes)": EventFragment;
        "TokensForwarded(address,address,uint256,uint256,address)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "MessageForwarded"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "TokensForwarded"): EventFragment;
}
export interface MessageForwardedEventObject {
    target: string;
    chainId: BigNumber;
    message: string;
}
export type MessageForwardedEvent = TypedEvent<[
    string,
    BigNumber,
    string
], MessageForwardedEventObject>;
export type MessageForwardedEventFilter = TypedEventFilter<MessageForwardedEvent>;
export interface TokensForwardedEventObject {
    baseToken: string;
    remoteToken: string;
    amount: BigNumber;
    destinationChainId: BigNumber;
    to: string;
}
export type TokensForwardedEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    BigNumber,
    string
], TokensForwardedEventObject>;
export type TokensForwardedEventFilter = TypedEventFilter<TokensForwardedEvent>;
export interface ForwarderInterface extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: ForwarderInterfaceInterface;
    queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
    listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
    listeners(eventName?: string): Array<Listener>;
    removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
    removeAllListeners(eventName?: string): this;
    off: OnEvent<this>;
    on: OnEvent<this>;
    once: OnEvent<this>;
    removeListener: OnEvent<this>;
    functions: {
        relayMessage(target: string, destinationChainId: BigNumberish, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        relayTokens(l2Token: string, l3Token: string, amount: BigNumberish, destinationChainId: BigNumberish, to: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
    };
    relayMessage(target: string, destinationChainId: BigNumberish, message: BytesLike, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    relayTokens(l2Token: string, l3Token: string, amount: BigNumberish, destinationChainId: BigNumberish, to: string, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    callStatic: {
        relayMessage(target: string, destinationChainId: BigNumberish, message: BytesLike, overrides?: CallOverrides): Promise<void>;
        relayTokens(l2Token: string, l3Token: string, amount: BigNumberish, destinationChainId: BigNumberish, to: string, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        "MessageForwarded(address,uint256,bytes)"(target?: string | null, chainId?: BigNumberish | null, message?: null): MessageForwardedEventFilter;
        MessageForwarded(target?: string | null, chainId?: BigNumberish | null, message?: null): MessageForwardedEventFilter;
        "TokensForwarded(address,address,uint256,uint256,address)"(baseToken?: null, remoteToken?: null, amount?: null, destinationChainId?: BigNumberish | null, to?: string | null): TokensForwardedEventFilter;
        TokensForwarded(baseToken?: null, remoteToken?: null, amount?: null, destinationChainId?: BigNumberish | null, to?: string | null): TokensForwardedEventFilter;
    };
    estimateGas: {
        relayMessage(target: string, destinationChainId: BigNumberish, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
        relayTokens(l2Token: string, l3Token: string, amount: BigNumberish, destinationChainId: BigNumberish, to: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        relayMessage(target: string, destinationChainId: BigNumberish, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        relayTokens(l2Token: string, l3Token: string, amount: BigNumberish, destinationChainId: BigNumberish, to: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
    };
}
