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 SimplePriceOracleInterface extends utils.Interface {
    functions: {
        "assetPrices(address)": FunctionFragment;
        "getUnderlyingPrice(address)": FunctionFragment;
        "isPriceOracle()": FunctionFragment;
        "setDirectPrice(address,uint256)": FunctionFragment;
        "setUnderlyingPrice(address,uint256)": FunctionFragment;
    };
    getFunction(nameOrSignatureOrTopic: "assetPrices" | "getUnderlyingPrice" | "isPriceOracle" | "setDirectPrice" | "setUnderlyingPrice"): FunctionFragment;
    encodeFunctionData(functionFragment: "assetPrices", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "getUnderlyingPrice", values: [PromiseOrValue<string>]): string;
    encodeFunctionData(functionFragment: "isPriceOracle", values?: undefined): string;
    encodeFunctionData(functionFragment: "setDirectPrice", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    encodeFunctionData(functionFragment: "setUnderlyingPrice", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
    decodeFunctionResult(functionFragment: "assetPrices", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "getUnderlyingPrice", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "isPriceOracle", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setDirectPrice", data: BytesLike): Result;
    decodeFunctionResult(functionFragment: "setUnderlyingPrice", data: BytesLike): Result;
    events: {
        "PricePosted(address,uint256,uint256,uint256)": EventFragment;
    };
    getEvent(nameOrSignatureOrTopic: "PricePosted"): EventFragment;
}
export interface PricePostedEventObject {
    asset: string;
    previousPriceMantissa: BigNumber;
    requestedPriceMantissa: BigNumber;
    newPriceMantissa: BigNumber;
}
export type PricePostedEvent = TypedEvent<[
    string,
    BigNumber,
    BigNumber,
    BigNumber
], PricePostedEventObject>;
export type PricePostedEventFilter = TypedEventFilter<PricePostedEvent>;
export interface SimplePriceOracle extends BaseContract {
    connect(signerOrProvider: Signer | Provider | string): this;
    attach(addressOrName: string): this;
    deployed(): Promise<this>;
    interface: SimplePriceOracleInterface;
    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: {
        assetPrices(asset: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        getUnderlyingPrice(vToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
        isPriceOracle(overrides?: CallOverrides): Promise<[boolean]>;
        setDirectPrice(asset: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
        setUnderlyingPrice(vToken: PromiseOrValue<string>, underlyingPriceMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<ContractTransaction>;
    };
    assetPrices(asset: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    getUnderlyingPrice(vToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
    isPriceOracle(overrides?: CallOverrides): Promise<boolean>;
    setDirectPrice(asset: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    setUnderlyingPrice(vToken: PromiseOrValue<string>, underlyingPriceMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
        from?: PromiseOrValue<string>;
    }): Promise<ContractTransaction>;
    callStatic: {
        assetPrices(asset: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getUnderlyingPrice(vToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        isPriceOracle(overrides?: CallOverrides): Promise<boolean>;
        setDirectPrice(asset: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
        setUnderlyingPrice(vToken: PromiseOrValue<string>, underlyingPriceMantissa: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
    };
    filters: {
        "PricePosted(address,uint256,uint256,uint256)"(asset?: null, previousPriceMantissa?: null, requestedPriceMantissa?: null, newPriceMantissa?: null): PricePostedEventFilter;
        PricePosted(asset?: null, previousPriceMantissa?: null, requestedPriceMantissa?: null, newPriceMantissa?: null): PricePostedEventFilter;
    };
    estimateGas: {
        assetPrices(asset: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        getUnderlyingPrice(vToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
        isPriceOracle(overrides?: CallOverrides): Promise<BigNumber>;
        setDirectPrice(asset: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
        setUnderlyingPrice(vToken: PromiseOrValue<string>, underlyingPriceMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<BigNumber>;
    };
    populateTransaction: {
        assetPrices(asset: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        getUnderlyingPrice(vToken: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
        isPriceOracle(overrides?: CallOverrides): Promise<PopulatedTransaction>;
        setDirectPrice(asset: PromiseOrValue<string>, price: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
        setUnderlyingPrice(vToken: PromiseOrValue<string>, underlyingPriceMantissa: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
            from?: PromiseOrValue<string>;
        }): Promise<PopulatedTransaction>;
    };
}
