/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; import { type EmaTwap, type EmaTwapArgs } from "../types"; export declare const ORACLE_TWAPS_DISCRIMINATOR: Uint8Array; export declare function getOracleTwapsDiscriminatorBytes(): ReadonlyUint8Array; export type OracleTwaps = { discriminator: ReadonlyUint8Array; oraclePrices: Address; oracleMappings: Address; twaps: Array; }; export type OracleTwapsArgs = { oraclePrices: Address; oracleMappings: Address; twaps: Array; }; /** Gets the encoder for {@link OracleTwapsArgs} account data. */ export declare function getOracleTwapsEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link OracleTwaps} account data. */ export declare function getOracleTwapsDecoder(): FixedSizeDecoder; /** Gets the codec for {@link OracleTwaps} account data. */ export declare function getOracleTwapsCodec(): FixedSizeCodec; export declare function decodeOracleTwaps(encodedAccount: EncodedAccount): Account; export declare function decodeOracleTwaps(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchOracleTwaps(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeOracleTwaps(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllOracleTwaps(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeOracleTwaps(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getOracleTwapsSize(): number; //# sourceMappingURL=oracleTwaps.d.ts.map