import { MintKeys, Proof, Token } from './model/types/index.js'; declare function splitAmount(value: number): Array; declare function bytesToNumber(bytes: Uint8Array): bigint; declare function hexToNumber(hex: string): bigint; declare function bigIntStringify(_key: unknown, value: T): string | T; /** * Helper function to encode a v3 cashu token * @param token * @returns */ declare function getEncodedToken(token: Token): string; /** * Helper function to decode cashu tokens into object * @param token an encoded cashu token (cashuAey...) * @returns cashu token object */ declare function getDecodedToken(token: string): Token; /** * Returns the keyset id of a set of keys * @param keys keys object to derive keyset id from * @returns */ export declare function deriveKeysetId(keys: MintKeys): string; /** * merge proofs from same mint, * removes TokenEntrys with no proofs or no mint field * and sorts proofs by id * * @export * @param {Token} token * @return {*} {Token} */ export declare function cleanToken(token: Token): Token; export declare function sortProofsById(proofs: Array): Proof[]; export declare function isObj(v: unknown): v is object; export declare function checkResponse(data: { error?: string; detail?: string; }): void; export declare function checkResponseError(err: any): void; export { hexToNumber, splitAmount, bytesToNumber, bigIntStringify, getDecodedToken, getEncodedToken };