import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
export interface MoveDebtDelegateInterface extends utils.Interface {
    functions: {
        "ANY_USER()": FunctionFragment;
        "acceptOwnership()": FunctionFragment;
        "borrowAllowed(address)": FunctionFragment;
        "initialize()": FunctionFragment;
        "moveDebt(address,address,uint256,address)": FunctionFragment;
        "newBorrower()": FunctionFragment;
        "owner()": FunctionFragment;
        "pendingOwner()": FunctionFragment;
        "renounceOwnership()": FunctionFragment;
        "repaymentAllowed(address,address)": FunctionFragment;
        "setBorrowAllowed(address,bool)": FunctionFragment;
        "setRepaymentAllowed(address,address,bool)": FunctionFragment;
        "sweepTokens(address)": FunctionFragment;
        "transferOwnership(address)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "ANY_USER" | "acceptOwnership" | "borrowAllowed" | "initialize" | "moveDebt" | "newBorrower" | "owner" | "pendingOwner" | "renounceOwnership" | "repaymentAllowed" | "setBorrowAllowed" | "setRepaymentAllowed" | "sweepTokens" | "transferOwnership"): FunctionFragment;
    encodeFunctionData(functionFragment: "ANY_USER", values?: undefined): string;
    encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string;
    encodeFunctionData(functionFragment: "borrowAllowed", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "initialize", values?: undefined): string;
    encodeFunctionData(functionFragment: "moveDebt", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<BigNumberish>,
        PromiseOrValue<string>
    ]): string;
    encodeFunctionData(functionFragment: "newBorrower", values?: undefined): string;
    encodeFunctionData(functionFragment: "owner", values?: undefined): string;
    encodeFunctionData(functionFragment: "pendingOwner", values?: undefined): string;
    encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
    encodeFunctionData(functionFragment: "repaymentAllowed", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "setBorrowAllowed", values: [PromiseOrValue<string>, PromiseOrValue<boolean>]): string;
    encodeFunctionData(functionFragment: "setRepaymentAllowed", values: [
        PromiseOrValue<string>,
        PromiseOrValue<string>,
        PromiseOrValue<boolean>
    ]): string;
    encodeFunctionData(functionFragment: "sweepTokens", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
    decodeFunctionResult(functionFragment: "ANY_USER", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "borrowAllowed", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "moveDebt", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "newBorrower", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "pendingOwner", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "repaymentAllowed", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setBorrowAllowed", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setRepaymentAllowed", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "sweepTokens", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
    events: {
        "BorrowAllowedSet(address,bool)": EventFragment;
        "DebtMoved(address,address,uint256,address,address,uint256)": EventFragment;
        "Initialized(uint8)": EventFragment;
        "OwnershipTransferStarted(address,address)": EventFragment;
        "OwnershipTransferred(address,address)": EventFragment;
        "RepaymentAllowedSet(address,address,bool)": EventFragment;
        "SweptTokens(address,uint256)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "BorrowAllowedSet"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "DebtMoved"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "RepaymentAllowedSet"): EventFragment;
    getEvent(nameOrSignatureOrTopic: "SweptTokens"): EventFragment;
}
export interface BorrowAllowedSetEventObject {
    vTokenToBorrow: string;
    allowed: boolean;
}
export type BorrowAllowedSetEvent = TypedEvent<[
    string,
    boolean
], BorrowAllowedSetEventObject>;
export type BorrowAllowedSetEventFilter = TypedEventFilter<BorrowAllowedSetEvent>;
export interface DebtMovedEventObject {
    originalBorrower: string;
    vTokenRepaid: string;
    repaidAmount: BigNumber;
    newBorrower: string;
    vTokenBorrowed: string;
    borrowedAmount: BigNumber;
}
export type DebtMovedEvent = TypedEvent<[
    string,
    string,
    BigNumber,
    string,
    string,
    BigNumber
], DebtMovedEventObject>;
export type DebtMovedEventFilter = TypedEventFilter<DebtMovedEvent>;
export interface InitializedEventObject {
    version: number;
}
export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
export interface OwnershipTransferStartedEventObject {
    previousOwner: string;
    newOwner: string;
}
export type OwnershipTransferStartedEvent = TypedEvent<[
    string,
    string
], OwnershipTransferStartedEventObject>;
export type OwnershipTransferStartedEventFilter = TypedEventFilter<OwnershipTransferStartedEvent>;
export interface OwnershipTransferredEventObject {
    previousOwner: string;
    newOwner: string;
}
export type OwnershipTransferredEvent = TypedEvent<[
    string,
    string
], OwnershipTransferredEventObject>;
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
export interface RepaymentAllowedSetEventObject {
    vTokenToRepay: string;
    originalBorrower: string;
    allowed: boolean;
}
export type RepaymentAllowedSetEvent = TypedEvent<[
    string,
    string,
    boolean
], RepaymentAllowedSetEventObject>;
export type RepaymentAllowedSetEventFilter = TypedEventFilter<RepaymentAllowedSetEvent>;
export interface SweptTokensEventObject {
    token: string;
    amount: BigNumber;
}
export type SweptTokensEvent = TypedEvent<[
    string,
    BigNumber
], SweptTokensEventObject>;
export type SweptTokensEventFilter = TypedEventFilter<SweptTokensEvent>;
export interface MoveDebtDelegate extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: MoveDebtDelegateInterface;
    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: {
        ANY_USER(overrides?: CallOverrides): Promise<[string]>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        borrowAllowed(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
        initialize(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        moveDebt(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenToBorrow: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        newBorrower(overrides?: CallOverrides): Promise<[string]>;
        owner(overrides?: CallOverrides): Promise<[string]>;
        pendingOwner(overrides?: CallOverrides): Promise<[string]>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        repaymentAllowed(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
        setBorrowAllowed(vTokenToBorrow: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        setRepaymentAllowed(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        sweepTokens(token: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
    };
    ANY_USER(overrides?: CallOverrides): Promise<string>;
    acceptOwnership(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    borrowAllowed(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
    initialize(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    moveDebt(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenToBorrow: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    newBorrower(overrides?: CallOverrides): Promise<string>;
    owner(overrides?: CallOverrides): Promise<string>;
    pendingOwner(overrides?: CallOverrides): Promise<string>;
    renounceOwnership(overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    repaymentAllowed(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
    setBorrowAllowed(vTokenToBorrow: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    setRepaymentAllowed(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    sweepTokens(token: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    callStatic: {
        ANY_USER(overrides?: CallOverrides): Promise<string>;
        acceptOwnership(overrides?: CallOverrides): Promise<void>;
        borrowAllowed(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
        initialize(overrides?: CallOverrides): Promise<void>;
        moveDebt(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenToBorrow: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        newBorrower(overrides?: CallOverrides): Promise<string>;
        owner(overrides?: CallOverrides): Promise<string>;
        pendingOwner(overrides?: CallOverrides): Promise<string>;
        renounceOwnership(overrides?: CallOverrides): Promise<void>;
        repaymentAllowed(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
        setBorrowAllowed(vTokenToBorrow: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>;
        setRepaymentAllowed(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>;
        sweepTokens(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
        transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        "BorrowAllowedSet(address,bool)"(vTokenToBorrow?: PromiseOrValue<string> | null, allowed?: null): BorrowAllowedSetEventFilter;
        BorrowAllowedSet(vTokenToBorrow?: PromiseOrValue<string> | null, allowed?: null): BorrowAllowedSetEventFilter;
        "DebtMoved(address,address,uint256,address,address,uint256)"(originalBorrower?: PromiseOrValue<string> | null, vTokenRepaid?: PromiseOrValue<string> | null, repaidAmount?: null, newBorrower?: null, vTokenBorrowed?: PromiseOrValue<string> | null, borrowedAmount?: null): DebtMovedEventFilter;
        DebtMoved(originalBorrower?: PromiseOrValue<string> | null, vTokenRepaid?: PromiseOrValue<string> | null, repaidAmount?: null, newBorrower?: null, vTokenBorrowed?: PromiseOrValue<string> | null, borrowedAmount?: null): DebtMovedEventFilter;
        "Initialized(uint8)"(version?: null): InitializedEventFilter;
        Initialized(version?: null): InitializedEventFilter;
        "OwnershipTransferStarted(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferStartedEventFilter;
        OwnershipTransferStarted(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferStartedEventFilter;
        "OwnershipTransferred(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
        OwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
        "RepaymentAllowedSet(address,address,bool)"(vTokenToRepay?: PromiseOrValue<string> | null, originalBorrower?: PromiseOrValue<string> | null, allowed?: null): RepaymentAllowedSetEventFilter;
        RepaymentAllowedSet(vTokenToRepay?: PromiseOrValue<string> | null, originalBorrower?: PromiseOrValue<string> | null, allowed?: null): RepaymentAllowedSetEventFilter;
        "SweptTokens(address,uint256)"(token?: PromiseOrValue<string> | null, amount?: null): SweptTokensEventFilter;
        SweptTokens(token?: PromiseOrValue<string> | null, amount?: null): SweptTokensEventFilter;
    };
    estimateGas: {
        ANY_USER(overrides?: CallOverrides): Promise<BigNumber>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        borrowAllowed(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        initialize(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        moveDebt(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenToBorrow: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        newBorrower(overrides?: CallOverrides): Promise<BigNumber>;
        owner(overrides?: CallOverrides): Promise<BigNumber>;
        pendingOwner(overrides?: CallOverrides): Promise<BigNumber>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        repaymentAllowed(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        setBorrowAllowed(vTokenToBorrow: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        setRepaymentAllowed(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        sweepTokens(token: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        ANY_USER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        acceptOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        borrowAllowed(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        initialize(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        moveDebt(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, repayAmount: PromiseOrValue<BigNumberish>, vTokenToBorrow: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        newBorrower(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        pendingOwner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        renounceOwnership(overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        repaymentAllowed(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        setBorrowAllowed(vTokenToBorrow: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        setRepaymentAllowed(vTokenToRepay: PromiseOrValue<string>, originalBorrower: PromiseOrValue<string>, allow: PromiseOrValue<boolean>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        sweepTokens(token: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
    };
}
