import { PublicKey, TransactionInstruction } from '@solana/web3.js'; import BN from 'bn.js'; export declare const SideUtils: { Bid: { bid: {}; }; Ask: { ask: {}; }; }; export declare const PlaceOrderTypeUtils: { Limit: { limit: {}; }; ImmediateOrCancel: { immediateOrCancel: {}; }; FillOrKill: { fillOrKill: {}; }; PostOnly: { postOnly: {}; }; Market: { market: {}; }; PostOnlySlide: { postOnlySlide: {}; }; }; export declare const SelfTradeBehaviorUtils: { DecrementTake: { decrementTake: {}; }; CancelProvide: { cancelProvide: {}; }; AbortTransaction: { abortTransaction: {}; }; }; export declare const U64_MAX_BN: BN; export declare const I64_MAX_BN: BN; export declare const ORDER_FEE_UNIT: BN; export declare function bpsToDecimal(bps: number): number; export declare function percentageToDecimal(percentage: number): number; export declare function toNative(uiAmount: number, decimals: number): BN; export declare function toUiDecimals(nativeAmount: number, decimals: number): number; /** * Get the address of the associated token account for a given mint and owner * * @param mint Token mint account * @param owner Owner of the new account * @param allowOwnerOffCurve Allow the owner account to be a PDA (Program Derived Address) * @param programId SPL Token program account * @param associatedTokenProgramId SPL Associated Token program account * * @return Address of the associated token account */ export declare function getAssociatedTokenAddress(mint: PublicKey, owner: PublicKey, allowOwnerOffCurve?: boolean, programId?: PublicKey, associatedTokenProgramId?: PublicKey): Promise; export declare function createAssociatedTokenAccountIdempotentInstruction(payer: PublicKey, owner: PublicKey, mint: PublicKey): Promise; export declare function sleep(ms: number): Promise;