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 Router_AdapterInterface extends utils.Interface {
    functions: {
        "HUB_POOL()": FunctionFragment;
        "L1_ADAPTER()": FunctionFragment;
        "L2_CHAIN_ID()": FunctionFragment;
        "L2_TARGET()": FunctionFragment;
        "L3_CHAIN_ID()": FunctionFragment;
        "relayMessage(address,bytes)": FunctionFragment;
        "relayTokens(address,address,uint256,address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "HUB_POOL" | "L1_ADAPTER" | "L2_CHAIN_ID" | "L2_TARGET" | "L3_CHAIN_ID" | "relayMessage" | "relayTokens"): FunctionFragment;
    encodeFunctionData(functionFragment: "HUB_POOL", values?: undefined): string;
    encodeFunctionData(functionFragment: "L1_ADAPTER", values?: undefined): string;
    encodeFunctionData(functionFragment: "L2_CHAIN_ID", values?: undefined): string;
    encodeFunctionData(functionFragment: "L2_TARGET", values?: undefined): string;
    encodeFunctionData(functionFragment: "L3_CHAIN_ID", values?: undefined): string;
    encodeFunctionData(functionFragment: "relayMessage", values: [string, BytesLike]): string;
    encodeFunctionData(functionFragment: "relayTokens", values: [string, string, BigNumberish, string]): string;
    decodeFunctionResult(functionFragment: "HUB_POOL", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "L1_ADAPTER", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "L2_CHAIN_ID", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "L2_TARGET", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "L3_CHAIN_ID", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "relayMessage", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "relayTokens", data: BytesLike): Result;
    events: {
        "MessageRelayed(address,bytes)": EventFragment;
        "TokensRelayed(address,address,uint256,address)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "MessageRelayed"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "TokensRelayed"): EventFragment;
}
export interface MessageRelayedEventObject {
    target: string;
    message: string;
}
export type MessageRelayedEvent = TypedEvent<[
    string,
    string
], MessageRelayedEventObject>;
export type MessageRelayedEventFilter = TypedEventFilter<MessageRelayedEvent>;
export interface TokensRelayedEventObject {
    l1Token: string;
    l2Token: string;
    amount: BigNumber;
    to: string;
}
export type TokensRelayedEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string
], TokensRelayedEventObject>;
export type TokensRelayedEventFilter = TypedEventFilter<TokensRelayedEvent>;
export interface Router_Adapter extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: Router_AdapterInterface;
    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: {
        HUB_POOL(overrides?: CallOverrides): Promise<[string]>;
        L1_ADAPTER(overrides?: CallOverrides): Promise<[string]>;
        L2_CHAIN_ID(overrides?: CallOverrides): Promise<[BigNumber]>;
        L2_TARGET(overrides?: CallOverrides): Promise<[string]>;
        L3_CHAIN_ID(overrides?: CallOverrides): Promise<[BigNumber]>;
        relayMessage(target: string, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        relayTokens(l1Token: string, l3Token: string, amount: BigNumberish, target: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
    };
    HUB_POOL(overrides?: CallOverrides): Promise<string>;
    L1_ADAPTER(overrides?: CallOverrides): Promise<string>;
    L2_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
    L2_TARGET(overrides?: CallOverrides): Promise<string>;
    L3_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
    relayMessage(target: string, message: BytesLike, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    relayTokens(l1Token: string, l3Token: string, amount: BigNumberish, target: string, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    callStatic: {
        HUB_POOL(overrides?: CallOverrides): Promise<string>;
        L1_ADAPTER(overrides?: CallOverrides): Promise<string>;
        L2_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
        L2_TARGET(overrides?: CallOverrides): Promise<string>;
        L3_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
        relayMessage(target: string, message: BytesLike, overrides?: CallOverrides): Promise<void>;
        relayTokens(l1Token: string, l3Token: string, amount: BigNumberish, target: string, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        "MessageRelayed(address,bytes)"(target?: null, message?: null): MessageRelayedEventFilter;
        MessageRelayed(target?: null, message?: null): MessageRelayedEventFilter;
        "TokensRelayed(address,address,uint256,address)"(l1Token?: null, l2Token?: null, amount?: null, to?: null): TokensRelayedEventFilter;
        TokensRelayed(l1Token?: null, l2Token?: null, amount?: null, to?: null): TokensRelayedEventFilter;
    };
    estimateGas: {
        HUB_POOL(overrides?: CallOverrides): Promise<BigNumber>;
        L1_ADAPTER(overrides?: CallOverrides): Promise<BigNumber>;
        L2_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
        L2_TARGET(overrides?: CallOverrides): Promise<BigNumber>;
        L3_CHAIN_ID(overrides?: CallOverrides): Promise<BigNumber>;
        relayMessage(target: string, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
        relayTokens(l1Token: string, l3Token: string, amount: BigNumberish, target: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        HUB_POOL(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        L1_ADAPTER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        L2_CHAIN_ID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        L2_TARGET(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        L3_CHAIN_ID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        relayMessage(target: string, message: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        relayTokens(l1Token: string, l3Token: string, amount: BigNumberish, target: string, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
    };
}
