import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../../../common";
export type MiddlewareRequestStruct = {
    id: PromiseOrValue<BigNumberish>;
    optionalNativeAmount: PromiseOrValue<BigNumberish>;
    inputToken: PromiseOrValue<string>;
    data: PromiseOrValue<BytesLike>;
};
export type MiddlewareRequestStructOutput = [
    BigNumber,
    BigNumber,
    string,
    string
] & {
    id: BigNumber;
    optionalNativeAmount: BigNumber;
    inputToken: string;
    data: string;
};
export type BridgeRequestStruct = {
    id: PromiseOrValue<BigNumberish>;
    optionalNativeAmount: PromiseOrValue<BigNumberish>;
    inputToken: PromiseOrValue<string>;
    data: PromiseOrValue<BytesLike>;
};
export type BridgeRequestStructOutput = [
    BigNumber,
    BigNumber,
    string,
    string
] & {
    id: BigNumber;
    optionalNativeAmount: BigNumber;
    inputToken: string;
    data: string;
};
export type UserRequestStruct = {
    receiverAddress: PromiseOrValue<string>;
    toChainId: PromiseOrValue<BigNumberish>;
    amount: PromiseOrValue<BigNumberish>;
    middlewareRequest: MiddlewareRequestStruct;
    bridgeRequest: BridgeRequestStruct;
};
export type UserRequestStructOutput = [
    string,
    BigNumber,
    BigNumber,
    MiddlewareRequestStructOutput,
    BridgeRequestStructOutput
] & {
    receiverAddress: string;
    toChainId: BigNumber;
    amount: BigNumber;
    middlewareRequest: MiddlewareRequestStructOutput;
    bridgeRequest: BridgeRequestStructOutput;
};
export interface XChainLibInterface extends utils.Interface {
    functions: {
        "decodeSocketRegistryCalldata(bytes)": FunctionFragment;
        "slice(bytes,uint256,uint256)": FunctionFragment;
        "verifySocketCalldata(bytes,uint256,address,address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "decodeSocketRegistryCalldata" | "slice" | "verifySocketCalldata"): FunctionFragment;
    encodeFunctionData(functionFragment: "decodeSocketRegistryCalldata", values: [PromiseOrValue<BytesLike>]): string;
    encodeFunctionData(functionFragment: "slice", values: [
        PromiseOrValue<BytesLike>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<BigNumberish>
    ]): string;
    encodeFunctionData(functionFragment: "verifySocketCalldata", values: [
        PromiseOrValue<BytesLike>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<string>,
        PromiseOrValue<string>
    ]): string;
    decodeFunctionResult(functionFragment: "decodeSocketRegistryCalldata", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "slice", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "verifySocketCalldata", data: BytesLike): Result;
    events: {};
}
export interface XChainLib extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: XChainLibInterface;
    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: {
        decodeSocketRegistryCalldata(_data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[
            UserRequestStructOutput
        ] & {
            userRequest: UserRequestStructOutput;
        }>;
        slice(_bytes: PromiseOrValue<BytesLike>, _start: PromiseOrValue<BigNumberish>, _length: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string]>;
        verifySocketCalldata(_data: PromiseOrValue<BytesLike>, _chainId: PromiseOrValue<BigNumberish>, _inputToken: PromiseOrValue<string>, _receiverAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[void]>;
    };
    decodeSocketRegistryCalldata(_data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<UserRequestStructOutput>;
    slice(_bytes: PromiseOrValue<BytesLike>, _start: PromiseOrValue<BigNumberish>, _length: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
    verifySocketCalldata(_data: PromiseOrValue<BytesLike>, _chainId: PromiseOrValue<BigNumberish>, _inputToken: PromiseOrValue<string>, _receiverAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
    callStatic: {
        decodeSocketRegistryCalldata(_data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<UserRequestStructOutput>;
        slice(_bytes: PromiseOrValue<BytesLike>, _start: PromiseOrValue<BigNumberish>, _length: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
        verifySocketCalldata(_data: PromiseOrValue<BytesLike>, _chainId: PromiseOrValue<BigNumberish>, _inputToken: PromiseOrValue<string>, _receiverAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
    };
    filters: {};
    estimateGas: {
        decodeSocketRegistryCalldata(_data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
        slice(_bytes: PromiseOrValue<BytesLike>, _start: PromiseOrValue<BigNumberish>, _length: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
        verifySocketCalldata(_data: PromiseOrValue<BytesLike>, _chainId: PromiseOrValue<BigNumberish>, _inputToken: PromiseOrValue<string>, _receiverAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    };
    populateTransaction: {
        decodeSocketRegistryCalldata(_data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        slice(_bytes: PromiseOrValue<BytesLike>, _start: PromiseOrValue<BigNumberish>, _length: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        verifySocketCalldata(_data: PromiseOrValue<BytesLike>, _chainId: PromiseOrValue<BigNumberish>, _inputToken: PromiseOrValue<string>, _receiverAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
    };
}
