import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, 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 } from "./common";
export declare namespace IPermit2 {
    type PermitDetailsStruct = {
        token: string;
        amount: BigNumberish;
        expiration: BigNumberish;
        nonce: BigNumberish;
    };
    type PermitDetailsStructOutput = [
        string,
        BigNumber,
        number,
        number
    ] & {
        token: string;
        amount: BigNumber;
        expiration: number;
        nonce: number;
    };
    type PermitSingleStruct = {
        details: IPermit2.PermitDetailsStruct;
        spender: string;
        sigDeadline: BigNumberish;
    };
    type PermitSingleStructOutput = [
        IPermit2.PermitDetailsStructOutput,
        string,
        BigNumber
    ] & {
        details: IPermit2.PermitDetailsStructOutput;
        spender: string;
        sigDeadline: BigNumber;
    };
    type TokenPermissionsStruct = {
        token: string;
        amount: BigNumberish;
    };
    type TokenPermissionsStructOutput = [string, BigNumber] & {
        token: string;
        amount: BigNumber;
    };
    type PermitTransferFromStruct = {
        permitted: IPermit2.TokenPermissionsStruct;
        nonce: BigNumberish;
        deadline: BigNumberish;
    };
    type PermitTransferFromStructOutput = [
        IPermit2.TokenPermissionsStructOutput,
        BigNumber,
        BigNumber
    ] & {
        permitted: IPermit2.TokenPermissionsStructOutput;
        nonce: BigNumber;
        deadline: BigNumber;
    };
    type SignatureTransferDetailsStruct = {
        to: string;
        requestedAmount: BigNumberish;
    };
    type SignatureTransferDetailsStructOutput = [string, BigNumber] & {
        to: string;
        requestedAmount: BigNumber;
    };
}
export interface MockPermit2Interface extends utils.Interface {
    functions: {
        "DOMAIN_SEPARATOR()": FunctionFragment;
        "_PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB()": FunctionFragment;
        "_TOKEN_PERMISSIONS_TYPEHASH()": FunctionFragment;
        "allowance(address,address,address)": FunctionFragment;
        "nonceBitmap(address,uint256)": FunctionFragment;
        "permit(address,((address,uint160,uint48,uint48),address,uint256),bytes)": FunctionFragment;
        "permitWitnessTransferFrom(((address,uint256),uint256,uint256),(address,uint256),address,bytes32,string,bytes)": FunctionFragment;
        "transferFrom(address,address,uint160,address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "DOMAIN_SEPARATOR" | "_PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB" | "_TOKEN_PERMISSIONS_TYPEHASH" | "allowance" | "nonceBitmap" | "permit" | "permitWitnessTransferFrom" | "transferFrom"): FunctionFragment;
    encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
    encodeFunctionData(functionFragment: "_PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB", values?: undefined): string;
    encodeFunctionData(functionFragment: "_TOKEN_PERMISSIONS_TYPEHASH", values?: undefined): string;
    encodeFunctionData(functionFragment: "allowance", values: [string, string, string]): string;
    encodeFunctionData(functionFragment: "nonceBitmap", values: [string, BigNumberish]): string;
    encodeFunctionData(functionFragment: "permit", values: [string, IPermit2.PermitSingleStruct, BytesLike]): string;
    encodeFunctionData(functionFragment: "permitWitnessTransferFrom", values: [
        IPermit2.PermitTransferFromStruct,
        IPermit2.SignatureTransferDetailsStruct,
        string,
        BytesLike,
        string,
        BytesLike
    ]): string;
    encodeFunctionData(functionFragment: "transferFrom", values: [string, string, BigNumberish, string]): string;
    decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "_PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "_TOKEN_PERMISSIONS_TYPEHASH", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "nonceBitmap", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "permitWitnessTransferFrom", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
    events: {};
}
export interface MockPermit2 extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: MockPermit2Interface;
    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: {
        DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>;
        _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB(overrides?: CallOverrides): Promise<[string]>;
        _TOKEN_PERMISSIONS_TYPEHASH(overrides?: CallOverrides): Promise<[string]>;
        allowance(arg0: string, arg1: string, arg2: string, overrides?: CallOverrides): Promise<[BigNumber]>;
        nonceBitmap(arg0: string, arg1: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>;
        permit(owner: string, permitSingle: IPermit2.PermitSingleStruct, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        permitWitnessTransferFrom(_permit: IPermit2.PermitTransferFromStruct, transferDetails: IPermit2.SignatureTransferDetailsStruct, owner: string, witness: BytesLike, witnessTypeString: string, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
        transferFrom(from: string, to: string, amount: BigNumberish, token: string, overrides?: Overrides & {
            from?: string;
        }): Promise<ContractTransaction>;
    };
    DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
    _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB(overrides?: CallOverrides): Promise<string>;
    _TOKEN_PERMISSIONS_TYPEHASH(overrides?: CallOverrides): Promise<string>;
    allowance(arg0: string, arg1: string, arg2: string, overrides?: CallOverrides): Promise<BigNumber>;
    nonceBitmap(arg0: string, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
    permit(owner: string, permitSingle: IPermit2.PermitSingleStruct, signature: BytesLike, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    permitWitnessTransferFrom(_permit: IPermit2.PermitTransferFromStruct, transferDetails: IPermit2.SignatureTransferDetailsStruct, owner: string, witness: BytesLike, witnessTypeString: string, signature: BytesLike, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    transferFrom(from: string, to: string, amount: BigNumberish, token: string, overrides?: Overrides & {
        from?: string;
    }): Promise<ContractTransaction>;
    callStatic: {
        DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
        _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB(overrides?: CallOverrides): Promise<string>;
        _TOKEN_PERMISSIONS_TYPEHASH(overrides?: CallOverrides): Promise<string>;
        allowance(arg0: string, arg1: string, arg2: string, overrides?: CallOverrides): Promise<BigNumber>;
        nonceBitmap(arg0: string, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
        permit(owner: string, permitSingle: IPermit2.PermitSingleStruct, signature: BytesLike, overrides?: CallOverrides): Promise<void>;
        permitWitnessTransferFrom(_permit: IPermit2.PermitTransferFromStruct, transferDetails: IPermit2.SignatureTransferDetailsStruct, owner: string, witness: BytesLike, witnessTypeString: string, signature: BytesLike, overrides?: CallOverrides): Promise<void>;
        transferFrom(from: string, to: string, amount: BigNumberish, token: string, overrides?: CallOverrides): Promise<void>;
    };
    filters: {};
    estimateGas: {
        DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<BigNumber>;
        _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB(overrides?: CallOverrides): Promise<BigNumber>;
        _TOKEN_PERMISSIONS_TYPEHASH(overrides?: CallOverrides): Promise<BigNumber>;
        allowance(arg0: string, arg1: string, arg2: string, overrides?: CallOverrides): Promise<BigNumber>;
        nonceBitmap(arg0: string, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
        permit(owner: string, permitSingle: IPermit2.PermitSingleStruct, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        permitWitnessTransferFrom(_permit: IPermit2.PermitTransferFromStruct, transferDetails: IPermit2.SignatureTransferDetailsStruct, owner: string, witness: BytesLike, witnessTypeString: string, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
        transferFrom(from: string, to: string, amount: BigNumberish, token: string, overrides?: Overrides & {
            from?: string;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        _TOKEN_PERMISSIONS_TYPEHASH(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        allowance(arg0: string, arg1: string, arg2: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        nonceBitmap(arg0: string, arg1: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        permit(owner: string, permitSingle: IPermit2.PermitSingleStruct, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        permitWitnessTransferFrom(_permit: IPermit2.PermitTransferFromStruct, transferDetails: IPermit2.SignatureTransferDetailsStruct, owner: string, witness: BytesLike, witnessTypeString: string, signature: BytesLike, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
        transferFrom(from: string, to: string, amount: BigNumberish, token: string, overrides?: Overrides & {
            from?: string;
        }): Promise<PopulatedTransaction>;
    };
}
