/** * Fee Formatting Utilities * * Single source of truth for converting Lagoon's basis-point fee values * (uint16 from GraphQL; `2000` = 20%) into percentages for display and risk * calculations. * * The SDK simulator (`@lagoon-protocol/v0-computation`) expects raw basis * points — do NOT use these helpers in the simulation path. * * Covers all fee fields on `VaultState`: * - managementFee, performanceFee, protocolFee (legacy fee model) * - entryRate, exitRate, haircutRate (v0.6+ fee model) * - upcomingManagementFee, upcomingPerformanceFee (staged rates) */ /** * Convert a basis-point value to a decimal percentage. * `2000` → `20.0`. Returns `0` for `null`/`undefined`. */ export declare function basisPointsToPercent(bps: number | null | undefined): number; /** * Format a basis-point value as a human-readable percentage string. * `2000` → `"20.00%"`. Returns `"N/A"` for `null`/`undefined`. */ export declare function formatBasisPointsAsPercent(bps: number | null | undefined, decimals?: number): string; /** * Apply `basisPointsToPercent` to every fee field on a VaultState-like * object. Returns a shallow copy with numeric percentages (not basis points). * Useful when emitting fees to a downstream consumer that expects %. */ export declare function normalizeFeesToPercent(state: T): T; //# sourceMappingURL=fee-formatting.d.ts.map