import { Api } from '../api'; export interface Account { name: string; vesting_shares: string; balance: string; savings_balance: string; savings_sbd_balance: string; sbd_balance: string; other_history?: unknown[]; } export interface GlobalProperties { total_vesting_shares: string; total_vesting_fund_steem: string; } export interface FeedPrice { base: string; quote: string; } export interface OpenOrder { sell_price: { base: string; }; for_sale: number; } export interface SavingsWithdraw { amount: string; } export interface AccountValueOptions { gprops?: GlobalProperties; feed_price?: FeedPrice; open_orders?: OpenOrder[]; savings_withdraws?: SavingsWithdraw[]; vesting_steem?: number; } export declare function formatAmount(amount: number | string, symbol?: string): string; export declare function formatVests(vests: number | string): string; export declare function formatReputation(reputation: number | string | null | undefined, decimal_places?: number): string; export declare function formatPercent(value: number | string): string; export declare function formatTime(time: Date | number | string): string; export declare function formatNumber(value: number | string, decimals?: number): string; export declare class Formatter { private api; constructor(api: Api); private vestingSteem; private processOrders; private calculateSaving; private pricePerSteem; estimateAccountValue(account: Account, options?: AccountValueOptions): Promise; createSuggestedPassword(): string; reputation(reputation: number | null | undefined, decimal_places?: number): number | null | undefined; vestToSteem(vestingShares: string, totalVestingShares: string, totalVestingFundSteem: string): number; commentPermlink(parentAuthor: string, parentPermlink: string): string; } /** * Calculate vesting STEEM from vesting shares and global properties. * @param account Account object * @param gprops GlobalProperties object * @returns Number of STEEM */ export declare function vestingSteem(account: Account, gprops: GlobalProperties): number; /** * Calculate price per STEEM from feed price. * @param feed_price FeedPrice object * @returns Price per STEEM or undefined */ export declare function pricePerSteem(feed_price: FeedPrice): number | undefined; /** * Alias for formatAmount for backward compatibility. */ export declare const amount: typeof formatAmount; /** * Convert vesting shares to STEEM. * @param vestingShares Vesting shares string * @param totalVestingShares Total vesting shares string * @param totalVestingFundSteem Total vesting fund STEEM string * @returns Number of STEEM */ export declare function vestToSteem(vestingShares: string, totalVestingShares: string, totalVestingFundSteem: string): number; /** * Generate a comment permlink based on parent author and permlink. * @param parentAuthor Parent author string * @param parentPermlink Parent permlink string * @returns Generated permlink string */ export declare function commentPermlink(parentAuthor: string, parentPermlink: string): string; /** * Calculate Steem reputation score as a number, matching the original implementation. * @param reputation Raw reputation value * @param decimal_places Number of decimal places (optional) * @returns Reputation score as number, or null/undefined if input is null/undefined */ export declare function reputation(reputation: number | null | undefined, decimal_places?: number): number | null | undefined;