/** * 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 type { Account, Address, EncodedAccount, FetchAccountConfig, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, MaybeAccount, MaybeEncodedAccount, ReadonlyUint8Array } from "@solana/kit"; import type { LockTypeLabel, LockTypeLabelArgs } from "../types/index.js"; import { fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit"; export declare const LOCK_CONFIG_DISCRIMINATOR: ReadonlyUint8Array; export declare function getLockConfigDiscriminatorBytes(): ReadonlyUint8Array; export interface LockConfig { discriminator: ReadonlyUint8Array; position: Address; positionOwner: Address; whirlpool: Address; lockedTimestamp: bigint; lockType: LockTypeLabel; } export interface LockConfigArgs { position: Address; positionOwner: Address; whirlpool: Address; lockedTimestamp: number | bigint; lockType: LockTypeLabelArgs; } /** Gets the encoder for {@link LockConfigArgs} account data. */ export declare function getLockConfigEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link LockConfig} account data. */ export declare function getLockConfigDecoder(): FixedSizeDecoder; /** Gets the codec for {@link LockConfig} account data. */ export declare function getLockConfigCodec(): FixedSizeCodec; export declare function decodeLockConfig(encodedAccount: EncodedAccount): Account; export declare function decodeLockConfig(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchLockConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeLockConfig(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllLockConfig(rpc: Parameters[0], addresses: Address[], config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeLockConfig(rpc: Parameters[0], addresses: Address[], config?: FetchAccountsConfig): Promise[]>; //# sourceMappingURL=lockConfig.d.ts.map