/// import { ConfirmOptions, TransactionInstruction } from "@solana/web3.js"; import * as anchor from "@project-serum/anchor"; import { Connection, PublicKey, Transaction, Signer, AccountInfo, Keypair } from "@solana/web3.js"; import { Program } from "./program"; import { TokenAccount, TransactionMethodReturnData } from "./types"; import { Network } from "./network"; export declare function sleep(ms: number): Promise; export declare function defaultCommitment(): ConfirmOptions; export declare const ERR_BUFFER_OUT_OF_BOUNDS: () => Error; export declare const ERR_INVALID_ARG_TYPE: (name: string, expected: string, actual: string) => Error; export declare const ERR_OUT_OF_RANGE: (str: string, range: string, received: number) => Error; export declare function validateNumber(value: number, name: string): void; export declare function boundsError(value: number, length: number): void; export declare function readBigInt64LE(buffer: Uint8Array, offset?: number): bigint; export declare function getClockTimestamp(accountInfo: AccountInfo): number; export declare function processTransaction(program: Program, provider: anchor.AnchorProvider, tx: Transaction, signers?: Array, opts?: ConfirmOptions, returnInstructions?: boolean): Promise; export declare function createWrappedNativeAccount(connection: Connection, owner: PublicKey, payer: PublicKey, amount: number): Promise<[Transaction, Keypair]>; export declare function getTokenAccountsForMint(connection: Connection, mint: PublicKey): Promise; export declare function getUnderlyingMapping(network: Network, tokenAddress: PublicKey): string; export declare function getUnderlyingToKeyMapping(network: Network, underlyingString: string): PublicKey; export declare function bigIntToBN(bigInt: bigint): anchor.BN; export declare function BNtoBigInt(bn: anchor.BN): bigint; export declare function combineIxsForTx(...ixs: TransactionInstruction[]): Transaction; export declare function createTokenAccountInstructions(connection: Connection, mint: PublicKey, owner: PublicKey, payer: PublicKey, amount: number, closeNative: boolean): Promise<[ TransactionInstruction[], TransactionInstruction[], Keypair, PublicKey ]>;