import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, 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 ForwarderBaseInterface extends utils.Interface {
    functions: {
        "WRAPPED_NATIVE_TOKEN()": FunctionFragment;
        "__Forwarder_init(address)": FunctionFragment;
        "chainAdapters(uint256)": FunctionFragment;
        "crossDomainAdmin()": FunctionFragment;
        "executeRelayTokens(uint32)": FunctionFragment;
        "multicall(bytes[])": FunctionFragment;
        "proxiableUUID()": FunctionFragment;
        "relayMessage(address,uint256,bytes)": FunctionFragment;
        "relayTokens(address,address,uint256,uint256,address)": FunctionFragment;
        "setCrossDomainAdmin(address)": FunctionFragment;
        "tokenRelays(uint256)": FunctionFragment;
        "updateAdapter(uint256,address)": FunctionFragment;
        "upgradeTo(address)": FunctionFragment;
        "upgradeToAndCall(address,bytes)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "WRAPPED_NATIVE_TOKEN" | "__Forwarder_init" | "chainAdapters" | "crossDomainAdmin" | "executeRelayTokens" | "multicall" | "proxiableUUID" | "relayMessage" | "relayTokens" | "setCrossDomainAdmin" | "tokenRelays" | "updateAdapter" | "upgradeTo" | "upgradeToAndCall"): FunctionFragment;
    encodeFunctionData(functionFragment: "WRAPPED_NATIVE_TOKEN", values?: undefined): string;
    encodeFunctionData(functionFragment: "__Forwarder_init", values: [string]): string;
    encodeFunctionData(functionFragment: "chainAdapters", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "crossDomainAdmin", values?: undefined): string;
    encodeFunctionData(functionFragment: "executeRelayTokens", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "multicall", values: [BytesLike[]]): string;
    encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
    encodeFunctionData(functionFragment: "relayMessage", values: [string, BigNumberish, BytesLike]): string;
    encodeFunctionData(functionFragment: "relayTokens", values: [string, string, BigNumberish, BigNumberish, string]): string;
    encodeFunctionData(functionFragment: "setCrossDomainAdmin", values: [string]): string;
    encodeFunctionData(functionFragment: "tokenRelays", values: [BigNumberish]): string;
    encodeFunctionData(functionFragment: "updateAdapter", values: [BigNumberish, string]): string;
    encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
    encodeFunctionData(functionFragment: "upgradeToAndCall", values: [string, BytesLike]): string;
    decodeFunctionResult(functionFragment: "WRAPPED_NATIVE_TOKEN", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "__Forwarder_init", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "chainAdapters", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "crossDomainAdmin", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "executeRelayTokens", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "relayMessage", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "relayTokens", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setCrossDomainAdmin", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "tokenRelays", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "updateAdapter", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
    events: {
        "AdminChanged(address,address)": EventFragment;
        "BeaconUpgraded(address)": EventFragment;
        "ChainAdaptersUpdated(uint256,address)": EventFragment;
        "ExecutedTokenRelay(uint32)": EventFragment;
        "Initialized(uint8)": EventFragment;
        "MessageForwarded(address,uint256,bytes)": EventFragment;
        "ReceivedTokenRelay(uint32,(address,address,address,uint256,uint256,bool))": EventFragment;
        "SetXDomainAdmin(address)": EventFragment;
        "Upgraded(address)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "ChainAdaptersUpdated"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "ExecutedTokenRelay"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "MessageForwarded"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "ReceivedTokenRelay"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "SetXDomainAdmin"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
}
export interface AdminChangedEventObject {
    previousAdmin: string;
    newAdmin: string;
}
export type AdminChangedEvent = TypedEvent<[
    string,
    string
], AdminChangedEventObject>;
export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
export interface BeaconUpgradedEventObject {
    beacon: string;
}
export type BeaconUpgradedEvent = TypedEvent<[
    string
], BeaconUpgradedEventObject>;
export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
export interface ChainAdaptersUpdatedEventObject {
    destinationChainId: BigNumber;
    l2Adapter: string;
}
export type ChainAdaptersUpdatedEvent = TypedEvent<[
    BigNumber,
    string
], ChainAdaptersUpdatedEventObject>;
export type ChainAdaptersUpdatedEventFilter = TypedEventFilter<ChainAdaptersUpdatedEvent>;
export interface ExecutedTokenRelayEventObject {
    tokenRelayId: number;
}
export type ExecutedTokenRelayEvent = TypedEvent<[
    number
], ExecutedTokenRelayEventObject>;
export type ExecutedTokenRelayEventFilter = TypedEventFilter<ExecutedTokenRelayEvent>;
export interface InitializedEventObject {
    version: number;
}
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
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 SetXDomainAdminEventObject {
    crossDomainAdmin: string;
}
export type SetXDomainAdminEvent = TypedEvent<[
    string
], SetXDomainAdminEventObject>;
export type SetXDomainAdminEventFilter = TypedEventFilter<SetXDomainAdminEvent>;
export interface UpgradedEventObject {
    implementation: string;
}
export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>;
export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
export interface ForwarderBase extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: ForwarderBaseInterface;
    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: {
        WRAPPED_NATIVE_TOKEN(overrides?: CallOverrides): Promise<[string]>;
        __Forwarder_init(_crossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        chainAdapters(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
        crossDomainAdmin(overrides?: CallOverrides): Promise<[string]>;
        executeRelayTokens(tokenRelayId: BigNumberish, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        multicall(data: BytesLike[], overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
        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>;
        setCrossDomainAdmin(_newCrossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        tokenRelays(arg0: BigNumberish, overrides?: CallOverrides): Promise<[
            string,
            string,
            string,
            BigNumber,
            BigNumber,
            boolean
        ] & {
            l2Token: string;
            l3Token: string;
            to: string;
            amount: BigNumber;
            destinationChainId: BigNumber;
            executed: boolean;
        }>;
        updateAdapter(_destinationChainId: BigNumberish, _l2Adapter: string, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        upgradeTo(newImplementation: string, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        upgradeToAndCall(newImplementation: string, data: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<ContractTransaction>;
    };
    WRAPPED_NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
    __Forwarder_init(_crossDomainAdmin: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    chainAdapters(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>;
    crossDomainAdmin(overrides?: CallOverrides): Promise<string>;
    executeRelayTokens(tokenRelayId: BigNumberish, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    multicall(data: BytesLike[], overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    proxiableUUID(overrides?: CallOverrides): Promise<string>;
    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>;
    setCrossDomainAdmin(_newCrossDomainAdmin: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    tokenRelays(arg0: BigNumberish, overrides?: CallOverrides): Promise<[
        string,
        string,
        string,
        BigNumber,
        BigNumber,
        boolean
    ] & {
        l2Token: string;
        l3Token: string;
        to: string;
        amount: BigNumber;
        destinationChainId: BigNumber;
        executed: boolean;
    }>;
    updateAdapter(_destinationChainId: BigNumberish, _l2Adapter: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    upgradeTo(newImplementation: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    upgradeToAndCall(newImplementation: string, data: BytesLike, overrides?: PayableOverrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    callStatic: {
        WRAPPED_NATIVE_TOKEN(overrides?: CallOverrides): Promise<string>;
        __Forwarder_init(_crossDomainAdmin: string, overrides?: CallOverrides): Promise<void>;
        chainAdapters(arg0: BigNumberish, overrides?: CallOverrides): Promise<string>;
        crossDomainAdmin(overrides?: CallOverrides): Promise<string>;
        executeRelayTokens(tokenRelayId: BigNumberish, overrides?: CallOverrides): Promise<void>;
        multicall(data: BytesLike[], overrides?: CallOverrides): Promise<string[]>;
        proxiableUUID(overrides?: CallOverrides): Promise<string>;
        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>;
        setCrossDomainAdmin(_newCrossDomainAdmin: string, overrides?: CallOverrides): Promise<void>;
        tokenRelays(arg0: BigNumberish, overrides?: CallOverrides): Promise<[
            string,
            string,
            string,
            BigNumber,
            BigNumber,
            boolean
        ] & {
            l2Token: string;
            l3Token: string;
            to: string;
            amount: BigNumber;
            destinationChainId: BigNumber;
            executed: boolean;
        }>;
        updateAdapter(_destinationChainId: BigNumberish, _l2Adapter: string, overrides?: CallOverrides): Promise<void>;
        upgradeTo(newImplementation: string, overrides?: CallOverrides): Promise<void>;
        upgradeToAndCall(newImplementation: string, data: BytesLike, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        "AdminChanged(address,address)"(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter;
        AdminChanged(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter;
        "BeaconUpgraded(address)"(beacon?: string | null): BeaconUpgradedEventFilter;
        BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
        "ChainAdaptersUpdated(uint256,address)"(destinationChainId?: BigNumberish | null, l2Adapter?: null): ChainAdaptersUpdatedEventFilter;
        ChainAdaptersUpdated(destinationChainId?: BigNumberish | null, l2Adapter?: null): ChainAdaptersUpdatedEventFilter;
        "ExecutedTokenRelay(uint32)"(tokenRelayId?: BigNumberish | null): ExecutedTokenRelayEventFilter;
        ExecutedTokenRelay(tokenRelayId?: BigNumberish | null): ExecutedTokenRelayEventFilter;
        "Initialized(uint8)"(version?: null): InitializedEventFilter;
        Initialized(version?: null): InitializedEventFilter;
        "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;
        "SetXDomainAdmin(address)"(crossDomainAdmin?: string | null): SetXDomainAdminEventFilter;
        SetXDomainAdmin(crossDomainAdmin?: string | null): SetXDomainAdminEventFilter;
        "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
        Upgraded(implementation?: string | null): UpgradedEventFilter;
    };
    estimateGas: {
        WRAPPED_NATIVE_TOKEN(overrides?: CallOverrides): Promise<BigNumber>;
        __Forwarder_init(_crossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        chainAdapters(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
        crossDomainAdmin(overrides?: CallOverrides): Promise<BigNumber>;
        executeRelayTokens(tokenRelayId: BigNumberish, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
        multicall(data: BytesLike[], overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
        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>;
        setCrossDomainAdmin(_newCrossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        tokenRelays(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
        updateAdapter(_destinationChainId: BigNumberish, _l2Adapter: string, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        upgradeTo(newImplementation: string, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        upgradeToAndCall(newImplementation: string, data: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        WRAPPED_NATIVE_TOKEN(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        __Forwarder_init(_crossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        chainAdapters(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        crossDomainAdmin(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        executeRelayTokens(tokenRelayId: BigNumberish, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        multicall(data: BytesLike[], overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        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>;
        setCrossDomainAdmin(_newCrossDomainAdmin: string, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        tokenRelays(arg0: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        updateAdapter(_destinationChainId: BigNumberish, _l2Adapter: string, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        upgradeTo(newImplementation: string, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        upgradeToAndCall(newImplementation: string, data: BytesLike, overrides?: PayableOverrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
    };
}
