import * as types from "."; import * as web3 from "@solana/web3.js"; export declare function sleep(ms: number): Promise; export declare function waitForAccountToExist(solanaConnection: web3.Connection, key: web3.PublicKey, retryOptions?: { backoff: number; silent: boolean; retries: number; }): Promise; export declare function _undef(x: T | undefined | null, errorMsg?: string): T; export declare function dropNull(xs: Array): Array; export declare type RetryOptions = { retries: number; backoff?: number; silent?: boolean; }; export declare function retry({ backoff, silent, retries }: types.RetryOptions | undefined, f: (retry?: number) => Promise): Promise; export declare const setShouldLog: (val: boolean) => boolean; export declare let shouldLog: boolean; export declare function txLogsFact(connection: web3.Connection): (tx: string | web3.VersionedTransactionResponse) => Promise; export declare function asyncFilter(arr: Array, predicate: (x: T) => Promise): Promise>; export declare function dbg(x: T, message?: string, toString?: (x: T) => string | T): T; export declare function info(x: T, message?: string, toString?: (x: T) => string | T): T; export declare function warn(x: T, message?: string, toString?: (x: T) => string | T): T; export declare function err(x: T, message?: string, toString?: (x: T) => string | T): T; export declare function debug_pk_obj>(obj: T, msg?: string): T; export declare function debug_ix(ix: web3.TransactionInstruction, name?: string): web3.TransactionInstruction; export declare function debug_ix_keys(keys: Array, name?: string): Array; export declare function debug_xTokenLocator(token: types.XTokenLocator, msg?: string): void;