/** * Formats a given number as a currency string. * * The function takes an amount and an optional currency symbol. * It returns the amount formatted with two decimal places and * a thousands separator, prefixed with the specified currency symbol. * * @example * formatCurrency(1234.56, "$") // "$1,234.56" * * @param {number} amount - The amount to format. * @param {string} [currency=""] - The currency symbol to prefix. * @returns {string} The formatted currency string. */ export declare function formatCurrency(amount: number, currency?: string): string;