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 declare namespace ForwarderInterface {
    type TokenRelayStruct = {
        l2Token: string;
        l3Token: string;
        to: string;
        amount: BigNumberish;
        destinationChainId: BigNumberish;
        executed: boolean;
    };
    type TokenRelayStructOutput = [
        string,
        string,
        string,
        BigNumber,
        BigNumber,
        boolean
    ] & {
        l2Token: string;
        l3Token: string;
        to: string;
        amount: BigNumber;
        destinationChainId: BigNumber;
        executed: boolean;
    };
}
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: {
        "ExecutedTokenRelay(uint32)": EventFragment;
        "MessageForwarded(address,uint256,bytes)": EventFragment;
        "ReceivedTokenRelay(uint32,(address,address,address,uint256,uint256,bool))": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "ExecutedTokenRelay"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "MessageForwarded"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "ReceivedTokenRelay"): EventFragment;
}
export interface ExecutedTokenRelayEventObject {
    tokenRelayId: number;
}
export type ExecutedTokenRelayEvent = TypedEvent<[
    number
], ExecutedTokenRelayEventObject>;
export type ExecutedTokenRelayEventFilter = TypedEventFilter<ExecutedTokenRelayEvent>;
export interface MessageForwardedEventObject {
    target: string;
    chainId: BigNumber;
    message: string;
}
export type MessageForwardedEvent = TypedEvent<[
    string,
    BigNumber,
    string
], MessageForwardedEventObject>;
export type MessageForwardedEventFilter = TypedEventFilter<MessageForwardedEvent>;
export interface ReceivedTokenRelayEventObject {
    tokenRelayId: number;
    tokenRelay: ForwarderInterface.TokenRelayStructOutput;
}
export type ReceivedTokenRelayEvent = TypedEvent<[
    number,
    ForwarderInterface.TokenRelayStructOutput
], ReceivedTokenRelayEventObject>;
export type ReceivedTokenRelayEventFilter = TypedEventFilter<ReceivedTokenRelayEvent>;
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: {
        "ExecutedTokenRelay(uint32)"(tokenRelayId?: BigNumberish | null): ExecutedTokenRelayEventFilter;
        ExecutedTokenRelay(tokenRelayId?: BigNumberish | null): ExecutedTokenRelayEventFilter;
        "MessageForwarded(address,uint256,bytes)"(target?: string | null, chainId?: BigNumberish | null, message?: null): MessageForwardedEventFilter;
        MessageForwarded(target?: string | null, chainId?: BigNumberish | null, message?: null): MessageForwardedEventFilter;
        "ReceivedTokenRelay(uint32,(address,address,address,uint256,uint256,bool))"(tokenRelayId?: BigNumberish | null, tokenRelay?: null): ReceivedTokenRelayEventFilter;
        ReceivedTokenRelay(tokenRelayId?: BigNumberish | null, tokenRelay?: null): ReceivedTokenRelayEventFilter;
    };
    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>;
    };
}
