/**
 * 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';
export declare const ORACLE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getOracleDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type Oracle = {
    discriminator: ReadonlyUint8Array;
    /** Index of latest observation slot */
    idx: bigint;
    /** Size of active sample. Active sample is initialized observation. */
    activeSize: bigint;
    /** Number of observations */
    length: bigint;
};
export type OracleArgs = {
    /** Index of latest observation slot */
    idx: number | bigint;
    /** Size of active sample. Active sample is initialized observation. */
    activeSize: number | bigint;
    /** Number of observations */
    length: number | bigint;
};
/** Gets the encoder for {@link OracleArgs} account data. */
export declare function getOracleEncoder(): FixedSizeEncoder<OracleArgs>;
/** Gets the decoder for {@link Oracle} account data. */
export declare function getOracleDecoder(): FixedSizeDecoder<Oracle>;
/** Gets the codec for {@link Oracle} account data. */
export declare function getOracleCodec(): FixedSizeCodec<OracleArgs, Oracle>;
export declare function decodeOracle<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Oracle, TAddress>;
export declare function decodeOracle<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Oracle, TAddress>;
export declare function fetchOracle<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Oracle, TAddress>>;
export declare function fetchMaybeOracle<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Oracle, TAddress>>;
export declare function fetchAllOracle(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Oracle>[]>;
export declare function fetchAllMaybeOracle(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Oracle>[]>;
export declare function getOracleSize(): number;
//# sourceMappingURL=oracle.d.ts.map