function formatUsd(amount) {
    return `$${amount.toFixed(2)}`;
}
function formatPercent(percent) {
    return `${percent.toFixed(2)}%`;
}
export class BudgetStatusPresenter {
    present(status) {
        return {
            limitUsdFormatted: formatUsd(status.limitUsd),
            consumedUsdFormatted: formatUsd(status.consumedUsd),
            remainingUsdFormatted: formatUsd(status.remainingUsd),
            percentUsedFormatted: formatPercent(status.percentUsed),
            gaugeWidthPercent: Math.min(100, status.percentUsed),
            exceeded: status.exceeded,
            periodStart: status.periodStart,
        };
    }
}
//# sourceMappingURL=budgetStatus.presenter.js.map