import type bigDecimal from "js-big-decimal";
import type {HDPrivateKey, PublicKey} from "libnexa-ts"

export interface AccountKeys {
    receiveKeys: AddressKey[];
    changeKeys: AddressKey[];
}
export interface WatchOnlyAddress {
    address: string,
    xPub? :PublicKey,
    derivationPath?: string
}

export interface AccountIndexes {
    rIndex: number;
    cIndex: number;
}

export interface TxStatus {
    height: number;
}

export interface HodlStatus {
    idx: number;
}

export interface AddressKey {
    key: HDPrivateKey;
    address: string;
    balance: string;
    tokensBalance: Record<string, Balance>;
}

export interface Balance {
    confirmed: string | number;
    unconfirmed: string | number;
}

export interface Price {
    value: bigDecimal;
    change: bigDecimal;
}
