///
/*************************************************************************
* Copyright 2022 C3 LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Algodv2 } from 'algosdk';
export declare namespace pricecasterTools {
function timeoutPromise(ms: number, promise: Promise): Promise;
function getInt64Bytes(x: number, len: number): Uint8Array;
function addressFromByteBuffer(addr: string): string;
function printAppCallDeltaArray(deltaArray: any[]): void;
function printAppStateArray(stateArray: any[]): void;
function appValueState(stateValue: any, disableParseAddress?: boolean): string;
function appValueStateString(stateValue: any): string;
function printAppState(state: any): void;
function printAppLocalState(algodClient: Algodv2, appId: number, accountAddr: string): Promise;
function printAppGlobalState(algodClient: Algodv2, appId: number): Promise;
function readCreatedApps(algodClient: Algodv2, accountAddr: string): Promise;
function readOptedInApps(algodClient: Algodv2, accountAddr: string): Promise;
function readAppGlobalState(algodClient: Algodv2, appId: number): Promise;
function readAppGlobalStateByKey(algodClient: Algodv2, appId: number, key: string | bigint | number, disableParseAddress?: boolean): Promise;
function readAppLocalState(algodClient: Algodv2, appId: number, accountAddr: string): Promise;
function readAppLocalStateByKey(algodClient: Algodv2, appId: number, accountAddr: string, key: string): Promise;
function uintArray8ToString(byteArray: Uint8Array): string;
/**
* Verify if transactionResponse has any information about a transaction local or global state change.
* @param {Object} transactionResponse object containing the transaction response of an application call
* @return {Boolean} returns true if there is a local or global delta meanining that
* the transaction made a change in the local or global state
*/
function anyAppCallDelta(transactionResponse: any): any;
/**
* Print to stdout the changes introduced by the transaction that generated the transactionResponse if any.
* @param {Object} transactionResponse object containing the transaction response of an application call
* @return {void}
*/
function printAppCallDelta(transactionResponse: any): void;
/**
* Extracts a buffer slice specifying start and number of bytes.
* @param {*} buffer An input buffer object.
* @param {*} start The start postion.
* @param {*} size The size of the byte slice to extract.
* @returns A buffer with extracted bytes.
*/
function extract3(buffer: Buffer, start: number, size: number): Buffer;
/**
* Divides an array in chunks.
* @param {*} array The input array
* @param {*} chunkSize The desired chunk size
* @returns A collection of arrays containing chunks of the original array
*/
function arrayChunks(array: Array, chunkSize: number): Array[];
/**
* Divides an array in chunks.
* @param {*} array The input array
* @param {*} numOfChunks The number of desired chunks
* @returns A collection of arrays containing chunks of the original array
*/
function arrayChunks2(array: Array, numOfChunks: number): Array[];
}
//# sourceMappingURL=app-tools.d.ts.map