import { Address } from "@solana/kit"; import BN from "bn.js"; import * as types from "../types"; export interface TokenInfoFields { name: Array; heuristic: types.PriceHeuristicFields; maxTwapDivergenceBps: BN; maxAgePriceSeconds: BN; maxAgeTwapSeconds: BN; scopeConfiguration: types.ScopeConfigurationFields; switchboardConfiguration: types.SwitchboardConfigurationFields; pythConfiguration: types.PythConfigurationFields; blockPriceUsage: number; reserved: Array; padding: Array; } export interface TokenInfoJSON { name: Array; heuristic: types.PriceHeuristicJSON; maxTwapDivergenceBps: string; maxAgePriceSeconds: string; maxAgeTwapSeconds: string; scopeConfiguration: types.ScopeConfigurationJSON; switchboardConfiguration: types.SwitchboardConfigurationJSON; pythConfiguration: types.PythConfigurationJSON; blockPriceUsage: number; reserved: Array; padding: Array; } export declare class TokenInfo { readonly name: Array; readonly heuristic: types.PriceHeuristic; readonly maxTwapDivergenceBps: BN; readonly maxAgePriceSeconds: BN; readonly maxAgeTwapSeconds: BN; readonly scopeConfiguration: types.ScopeConfiguration; readonly switchboardConfiguration: types.SwitchboardConfiguration; readonly pythConfiguration: types.PythConfiguration; readonly blockPriceUsage: number; readonly reserved: Array; readonly padding: Array; constructor(fields: TokenInfoFields); static layout(property?: string): import("buffer-layout").Layout; static fromDecoded(obj: any): types.TokenInfo; static toEncodable(fields: TokenInfoFields): { name: number[]; heuristic: { lower: BN; upper: BN; exp: BN; }; maxTwapDivergenceBps: BN; maxAgePriceSeconds: BN; maxAgeTwapSeconds: BN; scopeConfiguration: { priceFeed: Address; priceChain: number[]; twapChain: number[]; }; switchboardConfiguration: { priceAggregator: Address; twapAggregator: Address; }; pythConfiguration: { price: Address; }; blockPriceUsage: number; reserved: number[]; padding: BN[]; }; toJSON(): TokenInfoJSON; static fromJSON(obj: TokenInfoJSON): TokenInfo; toEncodable(): { name: number[]; heuristic: { lower: BN; upper: BN; exp: BN; }; maxTwapDivergenceBps: BN; maxAgePriceSeconds: BN; maxAgeTwapSeconds: BN; scopeConfiguration: { priceFeed: Address; priceChain: number[]; twapChain: number[]; }; switchboardConfiguration: { priceAggregator: Address; twapAggregator: Address; }; pythConfiguration: { price: Address; }; blockPriceUsage: number; reserved: number[]; padding: BN[]; }; } //# sourceMappingURL=TokenInfo.d.ts.map