@utilix-tech/sdk 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Full release notes for all Utilix surfaces (browser tools, REST API, SDKs, MCP server) live at [utilix.tech/changelog](https://utilix.tech/changelog). This file tracks just this package.
4
4
 
5
+ ## 0.64.0
6
+ - Add `calculateLoanRefinance` (loan-refinance-calculator): compare a current loan's remaining payments against a new refinanced loan on the same outstanding balance, and compute the monthly savings and the break-even month where cumulative savings recoup the closing costs.
7
+ - Add `extractMultipartBoundary`, `parseMultipartFormData` (multipart-form-parser): parse a raw multipart/form-data request body into its individual parts (field name, filename, headers, decoded value) per RFC 7578, or extract the boundary from a Content-Type header value.
8
+
5
9
  ## 0.63.0
6
10
  - Add `planDebtPayoff` (debt-payoff-planner): simulate paying off a list of debts under both the snowball (smallest balance first) and avalanche (highest rate first) strategies given a fixed extra monthly payment, and compare months to payoff and total interest.
7
11
  - Add `auditDependencyRanges` (package-json-dependency-auditor): classify each dependency's version specifier range type and flag wildcard ranges, the "latest" tag, git/URL/file/link dependencies, and packages listed with conflicting or redundant ranges across sections.
package/README.md CHANGED
@@ -343,7 +343,7 @@ formatIso8601Duration(90061); // { iso: "P1DT1H1M1S", ... }
343
343
  ### `/units`: Conversions
344
344
 
345
345
  ```ts
346
- import { convertBytes, pxToAll, convert, formatValue, validateCardNumber, validateIban, calculateLoan, validateBarcode, calculateTax, calculateCompoundInterest, validateIsbn, calculateTipSplit, calculateSimpleInterest, calculateTimeValue, calculatePercentageChange, convertAprApy, calculateMarginMarkup, calculateDiscount, applySuccessiveDiscounts, calculateBreakEven, calculateVideoBitrate, calculateRuleOf72, calculateEmi, calculateRoi, compareUnitPrices, calculatePaybackPeriod, calculateCdMaturity, calculateDepreciationSchedule, calculateCashRounding, calculateMovingAverages, calculateGpa, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateBlendedLoanRate, calculateFreelancerRate, calculateExtraPaymentPayoff } from "@utilix-tech/sdk/units";
346
+ import { convertBytes, pxToAll, convert, formatValue, validateCardNumber, validateIban, calculateLoan, validateBarcode, calculateTax, calculateCompoundInterest, validateIsbn, calculateTipSplit, calculateSimpleInterest, calculateTimeValue, calculatePercentageChange, convertAprApy, calculateMarginMarkup, calculateDiscount, applySuccessiveDiscounts, calculateBreakEven, calculateVideoBitrate, calculateRuleOf72, calculateEmi, calculateRoi, compareUnitPrices, calculatePaybackPeriod, calculateCdMaturity, calculateDepreciationSchedule, calculateCashRounding, calculateMovingAverages, calculateGpa, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateBlendedLoanRate, calculateFreelancerRate, calculateExtraPaymentPayoff, calculateLoanRefinance } from "@utilix-tech/sdk/units";
347
347
 
348
348
  // File sizes
349
349
  convertBytes(1073741824, "GB"); // 1
@@ -497,6 +497,10 @@ calculateExtraPaymentPayoff(200000, 6, 360, 200);
497
497
  // Debt snowball vs avalanche payoff simulation with a fixed extra monthly payment
498
498
  planDebtPayoff([{ label: "Credit card", balance: 4000, ratePercent: 22, minPayment: 100 }, { label: "Car loan", balance: 12000, ratePercent: 6, minPayment: 250 }], 200);
499
499
  // { snowball: { monthsToPayoff, totalInterestPaid, order, schedule }, avalanche: { ... }, comparison: { fasterStrategy, cheaperStrategy, ... } }
500
+
501
+ // Loan refinance break-even: monthly savings and the month closing costs are recouped
502
+ calculateLoanRefinance(300000, 6.5, 300, 5.5, 300, 6000);
503
+ // { monthlySavings: 183.36, breakEvenMonths: 33, currentTotalInterest: 307687.31, newTotalInterest: 252679.7, ... }
500
504
  ```
501
505
 
502
506
  ---
@@ -514,7 +518,8 @@ import { getStatusCode, isValidIp, isValidIpv4, isValidIpv6,
514
518
  buildXContentTypeOptionsHeader, parseXContentTypeOptionsHeader, assessContentTypeRisk,
515
519
  buildAcceptLanguage, parseAcceptLanguage,
516
520
  buildPreferHeader, parsePreferHeader,
517
- buildRetryAfterHeader, parseRetryAfterHeader } from "@utilix-tech/sdk/network";
521
+ buildRetryAfterHeader, parseRetryAfterHeader,
522
+ extractMultipartBoundary, parseMultipartFormData } from "@utilix-tech/sdk/network";
518
523
 
519
524
  getStatusCode(404);
520
525
  // { code: 404, text: "Not Found", description: "...", category: "Client Error" }
@@ -663,6 +668,14 @@ lookupCloseCode(1006);
663
668
  // List every well-known WebSocket close code (1000-1015)
664
669
  listCloseCodes();
665
670
  // [{ code: 1000, name: "Normal Closure", ... }, ...]
671
+
672
+ // Parse a raw multipart/form-data request body into its individual parts, per RFC 7578
673
+ parseMultipartFormData('--X\r\nContent-Disposition: form-data; name="a"\r\n\r\nhello\r\n--X--\r\n', "X");
674
+ // { boundary: "X", parts: [{ name: "a", filename: null, headers: {...}, value: "hello", isBinary: false }] }
675
+
676
+ // Extract the boundary parameter from a Content-Type header value
677
+ extractMultipartBoundary("multipart/form-data; boundary=----WebKitFormBoundaryABC123");
678
+ // "----WebKitFormBoundaryABC123"
666
679
  ```
667
680
 
668
681
  ---
@@ -37,6 +37,7 @@ __export(units_exports, {
37
37
  calculateFreelancerRate: () => calculateFreelancerRate,
38
38
  calculateGpa: () => calculateGpa,
39
39
  calculateLoan: () => calculateLoan,
40
+ calculateLoanRefinance: () => calculateLoanRefinance,
40
41
  calculateMarginMarkup: () => calculateMarginMarkup,
41
42
  calculateMovingAverages: () => calculateMovingAverages,
42
43
  calculatePaybackPeriod: () => calculatePaybackPeriod,
@@ -2481,5 +2482,26 @@ function planDebtPayoff(debts, extraMonthlyPayment = 0) {
2481
2482
  }
2482
2483
  };
2483
2484
  }
2485
+ function calculateLoanRefinance(currentBalance, currentRatePercent, currentRemainingMonths, newRatePercent, newTermMonths, closingCosts) {
2486
+ const current = calculateLoan(currentBalance, currentRatePercent, currentRemainingMonths);
2487
+ if ("error" in current) return current;
2488
+ const refinanced = calculateLoan(currentBalance, newRatePercent, newTermMonths);
2489
+ if ("error" in refinanced) return refinanced;
2490
+ if (!Number.isFinite(closingCosts) || closingCosts < 0) {
2491
+ return { error: "Closing costs must be zero or a positive number" };
2492
+ }
2493
+ const monthlySavings = round2(current.monthlyPayment - refinanced.monthlyPayment);
2494
+ const breakEvenMonths = monthlySavings > 0 ? Math.ceil(closingCosts / monthlySavings) : null;
2495
+ return {
2496
+ currentMonthlyPayment: current.monthlyPayment,
2497
+ newMonthlyPayment: refinanced.monthlyPayment,
2498
+ monthlySavings,
2499
+ closingCosts: round2(closingCosts),
2500
+ breakEvenMonths,
2501
+ currentTotalInterest: current.totalInterest,
2502
+ newTotalInterest: refinanced.totalInterest,
2503
+ totalInterestSavings: round2(current.totalInterest - refinanced.totalInterest)
2504
+ };
2505
+ }
2484
2506
 
2485
- export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx };
2507
+ export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, units_exports, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx };
@@ -31,6 +31,7 @@ __export(network_exports, {
31
31
  buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
32
32
  checkSetCookieHeader: () => checkSetCookieHeader,
33
33
  countryCodeToFlag: () => countryCodeToFlag,
34
+ extractMultipartBoundary: () => extractMultipartBoundary,
34
35
  formatCoordinates: () => formatCoordinates,
35
36
  formatTtl: () => formatTtl,
36
37
  getByCategory: () => getByCategory,
@@ -54,6 +55,7 @@ __export(network_exports, {
54
55
  parseGeoResponse: () => parseGeoResponse,
55
56
  parseHar: () => parseHar,
56
57
  parseIpv6Address: () => parseIpv6Address,
58
+ parseMultipartFormData: () => parseMultipartFormData,
57
59
  parsePermissionsPolicy: () => parsePermissionsPolicy,
58
60
  parsePreferHeader: () => parsePreferHeader,
59
61
  parsePriorityHeader: () => parsePriorityHeader,
@@ -3114,5 +3116,53 @@ function lookupCloseCode(code) {
3114
3116
  }
3115
3117
  return { error: `${code} is outside the defined close code ranges (0-4999); codes 5000 and above have no assigned meaning` };
3116
3118
  }
3119
+ function extractMultipartBoundary(contentType) {
3120
+ if (!contentType) return null;
3121
+ const match = contentType.match(/boundary=(?:"([^"]*)"|([^;\s]+))/i);
3122
+ if (!match) return null;
3123
+ return match[1] ?? match[2] ?? null;
3124
+ }
3125
+ function parseMultipartFormData(body, boundary) {
3126
+ if (!body || !body.trim()) return { error: "Body is empty" };
3127
+ if (!boundary || !boundary.trim()) return { error: "Boundary is required" };
3128
+ const normalized = body.replace(/\r\n/g, "\n");
3129
+ const delimiter = `--${boundary}`;
3130
+ const segments = normalized.split(delimiter);
3131
+ if (segments.length < 3) {
3132
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
3133
+ }
3134
+ const parts = [];
3135
+ for (let i = 1; i < segments.length; i++) {
3136
+ let segment = segments[i];
3137
+ if (segment.startsWith("--")) break;
3138
+ segment = segment.replace(/^\n/, "").replace(/\n$/, "");
3139
+ const headerEnd = segment.indexOf("\n\n");
3140
+ if (headerEnd === -1) continue;
3141
+ const headerBlock = segment.slice(0, headerEnd);
3142
+ const value = segment.slice(headerEnd + 2);
3143
+ const headers = {};
3144
+ for (const line of headerBlock.split("\n")) {
3145
+ const colon = line.indexOf(":");
3146
+ if (colon === -1) continue;
3147
+ headers[line.slice(0, colon).trim().toLowerCase()] = line.slice(colon + 1).trim();
3148
+ }
3149
+ const disposition = headers["content-disposition"] ?? "";
3150
+ const nameMatch = disposition.match(/name="([^"]*)"/);
3151
+ const filenameMatch = disposition.match(/filename="([^"]*)"/);
3152
+ const partContentType = headers["content-type"] ?? "";
3153
+ const isBinary = !!filenameMatch && !partContentType.startsWith("text/") && !partContentType.includes("json") && !partContentType.includes("xml");
3154
+ parts.push({
3155
+ name: nameMatch ? nameMatch[1] : null,
3156
+ filename: filenameMatch ? filenameMatch[1] : null,
3157
+ headers,
3158
+ value,
3159
+ isBinary
3160
+ });
3161
+ }
3162
+ if (parts.length === 0) {
3163
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
3164
+ }
3165
+ return { boundary, parts };
3166
+ }
3117
3167
 
3118
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, checkSetCookieHeader, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, lookupCloseCode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
3168
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, lookupCloseCode, network_exports, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap };
package/dist/index.cjs CHANGED
@@ -8435,6 +8435,7 @@ __export(units_exports, {
8435
8435
  calculateFreelancerRate: () => calculateFreelancerRate,
8436
8436
  calculateGpa: () => calculateGpa,
8437
8437
  calculateLoan: () => calculateLoan,
8438
+ calculateLoanRefinance: () => calculateLoanRefinance,
8438
8439
  calculateMarginMarkup: () => calculateMarginMarkup,
8439
8440
  calculateMovingAverages: () => calculateMovingAverages,
8440
8441
  calculatePaybackPeriod: () => calculatePaybackPeriod,
@@ -10879,6 +10880,27 @@ function planDebtPayoff(debts, extraMonthlyPayment = 0) {
10879
10880
  }
10880
10881
  };
10881
10882
  }
10883
+ function calculateLoanRefinance(currentBalance, currentRatePercent, currentRemainingMonths, newRatePercent, newTermMonths, closingCosts) {
10884
+ const current = calculateLoan(currentBalance, currentRatePercent, currentRemainingMonths);
10885
+ if ("error" in current) return current;
10886
+ const refinanced = calculateLoan(currentBalance, newRatePercent, newTermMonths);
10887
+ if ("error" in refinanced) return refinanced;
10888
+ if (!Number.isFinite(closingCosts) || closingCosts < 0) {
10889
+ return { error: "Closing costs must be zero or a positive number" };
10890
+ }
10891
+ const monthlySavings = round2(current.monthlyPayment - refinanced.monthlyPayment);
10892
+ const breakEvenMonths = monthlySavings > 0 ? Math.ceil(closingCosts / monthlySavings) : null;
10893
+ return {
10894
+ currentMonthlyPayment: current.monthlyPayment,
10895
+ newMonthlyPayment: refinanced.monthlyPayment,
10896
+ monthlySavings,
10897
+ closingCosts: round2(closingCosts),
10898
+ breakEvenMonths,
10899
+ currentTotalInterest: current.totalInterest,
10900
+ newTotalInterest: refinanced.totalInterest,
10901
+ totalInterestSavings: round2(current.totalInterest - refinanced.totalInterest)
10902
+ };
10903
+ }
10882
10904
 
10883
10905
  // src/tools/network.ts
10884
10906
  var network_exports = {};
@@ -10911,6 +10933,7 @@ __export(network_exports, {
10911
10933
  buildXContentTypeOptionsHeader: () => buildXContentTypeOptionsHeader,
10912
10934
  checkSetCookieHeader: () => checkSetCookieHeader,
10913
10935
  countryCodeToFlag: () => countryCodeToFlag,
10936
+ extractMultipartBoundary: () => extractMultipartBoundary,
10914
10937
  formatCoordinates: () => formatCoordinates,
10915
10938
  formatTtl: () => formatTtl,
10916
10939
  getByCategory: () => getByCategory,
@@ -10934,6 +10957,7 @@ __export(network_exports, {
10934
10957
  parseGeoResponse: () => parseGeoResponse,
10935
10958
  parseHar: () => parseHar,
10936
10959
  parseIpv6Address: () => parseIpv6Address,
10960
+ parseMultipartFormData: () => parseMultipartFormData,
10937
10961
  parsePermissionsPolicy: () => parsePermissionsPolicy,
10938
10962
  parsePreferHeader: () => parsePreferHeader,
10939
10963
  parsePriorityHeader: () => parsePriorityHeader,
@@ -13994,6 +14018,54 @@ function lookupCloseCode(code) {
13994
14018
  }
13995
14019
  return { error: `${code} is outside the defined close code ranges (0-4999); codes 5000 and above have no assigned meaning` };
13996
14020
  }
14021
+ function extractMultipartBoundary(contentType) {
14022
+ if (!contentType) return null;
14023
+ const match = contentType.match(/boundary=(?:"([^"]*)"|([^;\s]+))/i);
14024
+ if (!match) return null;
14025
+ return match[1] ?? match[2] ?? null;
14026
+ }
14027
+ function parseMultipartFormData(body, boundary) {
14028
+ if (!body || !body.trim()) return { error: "Body is empty" };
14029
+ if (!boundary || !boundary.trim()) return { error: "Boundary is required" };
14030
+ const normalized = body.replace(/\r\n/g, "\n");
14031
+ const delimiter = `--${boundary}`;
14032
+ const segments = normalized.split(delimiter);
14033
+ if (segments.length < 3) {
14034
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
14035
+ }
14036
+ const parts = [];
14037
+ for (let i = 1; i < segments.length; i++) {
14038
+ let segment = segments[i];
14039
+ if (segment.startsWith("--")) break;
14040
+ segment = segment.replace(/^\n/, "").replace(/\n$/, "");
14041
+ const headerEnd = segment.indexOf("\n\n");
14042
+ if (headerEnd === -1) continue;
14043
+ const headerBlock = segment.slice(0, headerEnd);
14044
+ const value = segment.slice(headerEnd + 2);
14045
+ const headers = {};
14046
+ for (const line of headerBlock.split("\n")) {
14047
+ const colon = line.indexOf(":");
14048
+ if (colon === -1) continue;
14049
+ headers[line.slice(0, colon).trim().toLowerCase()] = line.slice(colon + 1).trim();
14050
+ }
14051
+ const disposition = headers["content-disposition"] ?? "";
14052
+ const nameMatch = disposition.match(/name="([^"]*)"/);
14053
+ const filenameMatch = disposition.match(/filename="([^"]*)"/);
14054
+ const partContentType = headers["content-type"] ?? "";
14055
+ const isBinary = !!filenameMatch && !partContentType.startsWith("text/") && !partContentType.includes("json") && !partContentType.includes("xml");
14056
+ parts.push({
14057
+ name: nameMatch ? nameMatch[1] : null,
14058
+ filename: filenameMatch ? filenameMatch[1] : null,
14059
+ headers,
14060
+ value,
14061
+ isBinary
14062
+ });
14063
+ }
14064
+ if (parts.length === 0) {
14065
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
14066
+ }
14067
+ return { boundary, parts };
14068
+ }
13997
14069
 
13998
14070
  // src/tools/api.ts
13999
14071
  var api_exports = {};
package/dist/index.d.cts CHANGED
@@ -5,8 +5,8 @@ export { t as text } from './text-DWUcY8H1.cjs';
5
5
  export { d as data } from './data-vxXrBlWh.cjs';
6
6
  export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-KqJjdqII.cjs';
8
- export { u as units } from './units-CLJ16Zzv.cjs';
9
- export { n as network } from './network-DewFJy4E.cjs';
8
+ export { u as units } from './units-DPefgzmH.cjs';
9
+ export { n as network } from './network-DZTfMAk0.cjs';
10
10
  export { a as api } from './api-DmTNE4c1.cjs';
11
11
  export { c as code } from './code-CKI2Z_NM.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export { t as text } from './text-DWUcY8H1.js';
5
5
  export { d as data } from './data-vxXrBlWh.js';
6
6
  export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-KqJjdqII.js';
8
- export { u as units } from './units-CLJ16Zzv.js';
9
- export { n as network } from './network-DewFJy4E.js';
8
+ export { u as units } from './units-DPefgzmH.js';
9
+ export { n as network } from './network-DZTfMAk0.js';
10
10
  export { a as api } from './api-DmTNE4c1.js';
11
11
  export { c as code } from './code-CKI2Z_NM.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { media_exports as media } from './chunk-226EH3ZI.js';
2
- export { units_exports as units } from './chunk-YTH76KAF.js';
3
- export { network_exports as network } from './chunk-43L7H3L2.js';
2
+ export { units_exports as units } from './chunk-4HNHEOJL.js';
3
+ export { network_exports as network } from './chunk-IANBS5Y3.js';
4
4
  export { api_exports as api } from './chunk-52ZDKSIX.js';
5
5
  export { code_exports as code } from './chunk-JPFHEZ4P.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
@@ -900,6 +900,32 @@ declare function listCloseCodes(): CloseCodeInfo[];
900
900
  declare function lookupCloseCode(code: number): CloseCodeInfo | {
901
901
  error: string;
902
902
  };
903
+ interface MultipartPart {
904
+ name: string | null;
905
+ filename: string | null;
906
+ headers: Record<string, string>;
907
+ value: string;
908
+ isBinary: boolean;
909
+ }
910
+ interface MultipartParseResult {
911
+ boundary: string;
912
+ parts: MultipartPart[];
913
+ }
914
+ /**
915
+ * Extract the `boundary` parameter from a `Content-Type: multipart/form-data;
916
+ * boundary=...` header value. Returns null if the header has no boundary
917
+ * parameter, e.g. because it isn't a multipart Content-Type at all.
918
+ */
919
+ declare function extractMultipartBoundary(contentType: string): string | null;
920
+ /**
921
+ * Parse a raw multipart/form-data request body into its individual parts:
922
+ * field name, filename (if the part is a file field), headers, and decoded
923
+ * value, per RFC 7578. The body must use the same boundary the request's
924
+ * Content-Type header declared.
925
+ */
926
+ declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
+ error: string;
928
+ };
903
929
 
904
930
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
905
931
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -946,6 +972,8 @@ type network_LinkRel = LinkRel;
946
972
  type network_ManifestIconInfo = ManifestIconInfo;
947
973
  type network_ManifestIssue = ManifestIssue;
948
974
  type network_ManifestValidationResult = ManifestValidationResult;
975
+ type network_MultipartParseResult = MultipartParseResult;
976
+ type network_MultipartPart = MultipartPart;
949
977
  declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
950
978
  type network_ParsedClientHint = ParsedClientHint;
951
979
  type network_ParsedDnsResult = ParsedDnsResult;
@@ -1009,6 +1037,7 @@ declare const network_buildVaryHeader: typeof buildVaryHeader;
1009
1037
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1010
1038
  declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
1011
1039
  declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1040
+ declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
1012
1041
  declare const network_formatCoordinates: typeof formatCoordinates;
1013
1042
  declare const network_formatTtl: typeof formatTtl;
1014
1043
  declare const network_getByCategory: typeof getByCategory;
@@ -1032,6 +1061,7 @@ declare const network_parseDnsResponse: typeof parseDnsResponse;
1032
1061
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1033
1062
  declare const network_parseHar: typeof parseHar;
1034
1063
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
+ declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1035
1065
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
1036
1066
  declare const network_parsePreferHeader: typeof parsePreferHeader;
1037
1067
  declare const network_parsePriorityHeader: typeof parsePriorityHeader;
@@ -1051,7 +1081,7 @@ declare const network_validateManifest: typeof validateManifest;
1051
1081
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1052
1082
  declare const network_validateSitemap: typeof validateSitemap;
1053
1083
  declare namespace network {
1054
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1084
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1055
1085
  }
1056
1086
 
1057
- export { type PreferParameter as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, PERMISSIONS_POLICY_FEATURES as U, type ParsedClientHint as V, type ParsedDnsResult as W, type ParsedGeoResult as X, type PermissionsPolicyDirective as Y, type PermissionsPolicyFeatureInput as Z, type PermissionsPolicyResult as _, type AcceptLanguageResult as a, isServerError as a$, type PreferPreference as a0, type PreferResult as a1, type PriorityResult as a2, REFERRER_POLICY_VALUES as a3, type RangeEntry as a4, type RangeEntryInput as a5, type RangeHeaderResult as a6, type ReceivedHop as a7, type ReferrerPolicyEntry as a8, type ReferrerPolicyResult as a9, assessContentTypeRisk as aA, buildAcceptLanguage as aB, buildCacheControl as aC, buildClientHints as aD, buildContentDisposition as aE, buildDnsQueryUrl as aF, buildGeoUrl as aG, buildLinkHeader as aH, buildMapUrl as aI, buildPermissionsPolicy as aJ, buildPreferHeader as aK, buildPriorityHeader as aL, buildRangeHeader as aM, buildReferrerPolicy as aN, buildRetryAfterHeader as aO, buildVaryHeader as aP, buildXContentTypeOptionsHeader as aQ, checkSetCookieHeader as aR, countryCodeToFlag as aS, formatCoordinates as aT, formatTtl as aU, getByCategory as aV, getHeader as aW, getHeadersByCategory as aX, getStatusByCategory as aY, getStatusCode as aZ, isClientError as a_, type ReferrerPolicyValue as aa, type RetryAfterDateResult as ab, type RetryAfterResult as ac, type RetryAfterSecondsResult as ad, type RobotsGroup as ae, type RobotsIssue as af, type RobotsRule as ag, type RobotsValidationResult as ah, STATUS_CODES as ai, type SameSiteValue as aj, type SitemapIndexEntry as ak, type SitemapIssue as al, type SitemapSplitFile as am, type SitemapUrlEntry as an, type SitemapValidationResult as ao, type SplitSitemapOptions as ap, type SplitSitemapResult as aq, type StatusCode as ar, type UaDeviceType as as, type UserAgentInfo as at, type VaryHeaderEntry as au, type VaryHeaderResult as av, type XContentTypeOptionsHeader as aw, type XContentTypeOptionsParseResult as ax, X_CONTENT_TYPE_OPTIONS_HEADER as ay, analyzeEmailHeaders as az, type AuthResultEntry as b, isSuccess as b0, isValidIp as b1, isValidIpv4 as b2, isValidIpv6 as b3, listCloseCodes as b4, lookupCloseCode as b5, parseAcceptLanguage as b6, parseClientHintHeaders as b7, parseContentDisposition as b8, parseContentRangeHeader as b9, parseDnsResponse as ba, parseGeoResponse as bb, parseHar as bc, parseIpv6Address as bd, parsePermissionsPolicy as be, parsePreferHeader as bf, parsePriorityHeader as bg, parseRetryAfterHeader as bh, parseUserAgent as bi, parseVaryHeader as bj, parseXContentTypeOptionsHeader as bk, searchHeaders as bl, searchStatusCodes as bm, splitSitemap as bn, statusCodeToText as bo, typeNumberToLabel as bp, validateDomain as bq, validateHeaderName as br, validateHeaderValue as bs, validateManifest as bt, validateRobotsTxt as bu, validateSitemap as bv, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1087
+ export { type PermissionsPolicyFeatureInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, type MultipartParseResult as U, type MultipartPart as V, PERMISSIONS_POLICY_FEATURES as W, type ParsedClientHint as X, type ParsedDnsResult as Y, type ParsedGeoResult as Z, type PermissionsPolicyDirective as _, type AcceptLanguageResult as a, getStatusByCategory as a$, type PermissionsPolicyResult as a0, type PreferParameter as a1, type PreferPreference as a2, type PreferResult as a3, type PriorityResult as a4, REFERRER_POLICY_VALUES as a5, type RangeEntry as a6, type RangeEntryInput as a7, type RangeHeaderResult as a8, type ReceivedHop as a9, X_CONTENT_TYPE_OPTIONS_HEADER as aA, analyzeEmailHeaders as aB, assessContentTypeRisk as aC, buildAcceptLanguage as aD, buildCacheControl as aE, buildClientHints as aF, buildContentDisposition as aG, buildDnsQueryUrl as aH, buildGeoUrl as aI, buildLinkHeader as aJ, buildMapUrl as aK, buildPermissionsPolicy as aL, buildPreferHeader as aM, buildPriorityHeader as aN, buildRangeHeader as aO, buildReferrerPolicy as aP, buildRetryAfterHeader as aQ, buildVaryHeader as aR, buildXContentTypeOptionsHeader as aS, checkSetCookieHeader as aT, countryCodeToFlag as aU, extractMultipartBoundary as aV, formatCoordinates as aW, formatTtl as aX, getByCategory as aY, getHeader as aZ, getHeadersByCategory as a_, type ReferrerPolicyEntry as aa, type ReferrerPolicyResult as ab, type ReferrerPolicyValue as ac, type RetryAfterDateResult as ad, type RetryAfterResult as ae, type RetryAfterSecondsResult as af, type RobotsGroup as ag, type RobotsIssue as ah, type RobotsRule as ai, type RobotsValidationResult as aj, STATUS_CODES as ak, type SameSiteValue as al, type SitemapIndexEntry as am, type SitemapIssue as an, type SitemapSplitFile as ao, type SitemapUrlEntry as ap, type SitemapValidationResult as aq, type SplitSitemapOptions as ar, type SplitSitemapResult as as, type StatusCode as at, type UaDeviceType as au, type UserAgentInfo as av, type VaryHeaderEntry as aw, type VaryHeaderResult as ax, type XContentTypeOptionsHeader as ay, type XContentTypeOptionsParseResult as az, type AuthResultEntry as b, getStatusCode as b0, isClientError as b1, isServerError as b2, isSuccess as b3, isValidIp as b4, isValidIpv4 as b5, isValidIpv6 as b6, listCloseCodes as b7, lookupCloseCode as b8, parseAcceptLanguage as b9, parseClientHintHeaders as ba, parseContentDisposition as bb, parseContentRangeHeader as bc, parseDnsResponse as bd, parseGeoResponse as be, parseHar as bf, parseIpv6Address as bg, parseMultipartFormData as bh, parsePermissionsPolicy as bi, parsePreferHeader as bj, parsePriorityHeader as bk, parseRetryAfterHeader as bl, parseUserAgent as bm, parseVaryHeader as bn, parseXContentTypeOptionsHeader as bo, searchHeaders as bp, searchStatusCodes as bq, splitSitemap as br, statusCodeToText as bs, typeNumberToLabel as bt, validateDomain as bu, validateHeaderName as bv, validateHeaderValue as bw, validateManifest as bx, validateRobotsTxt as by, validateSitemap as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
@@ -900,6 +900,32 @@ declare function listCloseCodes(): CloseCodeInfo[];
900
900
  declare function lookupCloseCode(code: number): CloseCodeInfo | {
901
901
  error: string;
902
902
  };
903
+ interface MultipartPart {
904
+ name: string | null;
905
+ filename: string | null;
906
+ headers: Record<string, string>;
907
+ value: string;
908
+ isBinary: boolean;
909
+ }
910
+ interface MultipartParseResult {
911
+ boundary: string;
912
+ parts: MultipartPart[];
913
+ }
914
+ /**
915
+ * Extract the `boundary` parameter from a `Content-Type: multipart/form-data;
916
+ * boundary=...` header value. Returns null if the header has no boundary
917
+ * parameter, e.g. because it isn't a multipart Content-Type at all.
918
+ */
919
+ declare function extractMultipartBoundary(contentType: string): string | null;
920
+ /**
921
+ * Parse a raw multipart/form-data request body into its individual parts:
922
+ * field name, filename (if the part is a file field), headers, and decoded
923
+ * value, per RFC 7578. The body must use the same boundary the request's
924
+ * Content-Type header declared.
925
+ */
926
+ declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
+ error: string;
928
+ };
903
929
 
904
930
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
905
931
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -946,6 +972,8 @@ type network_LinkRel = LinkRel;
946
972
  type network_ManifestIconInfo = ManifestIconInfo;
947
973
  type network_ManifestIssue = ManifestIssue;
948
974
  type network_ManifestValidationResult = ManifestValidationResult;
975
+ type network_MultipartParseResult = MultipartParseResult;
976
+ type network_MultipartPart = MultipartPart;
949
977
  declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
950
978
  type network_ParsedClientHint = ParsedClientHint;
951
979
  type network_ParsedDnsResult = ParsedDnsResult;
@@ -1009,6 +1037,7 @@ declare const network_buildVaryHeader: typeof buildVaryHeader;
1009
1037
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1010
1038
  declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
1011
1039
  declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1040
+ declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
1012
1041
  declare const network_formatCoordinates: typeof formatCoordinates;
1013
1042
  declare const network_formatTtl: typeof formatTtl;
1014
1043
  declare const network_getByCategory: typeof getByCategory;
@@ -1032,6 +1061,7 @@ declare const network_parseDnsResponse: typeof parseDnsResponse;
1032
1061
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1033
1062
  declare const network_parseHar: typeof parseHar;
1034
1063
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
+ declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1035
1065
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
1036
1066
  declare const network_parsePreferHeader: typeof parsePreferHeader;
1037
1067
  declare const network_parsePriorityHeader: typeof parsePriorityHeader;
@@ -1051,7 +1081,7 @@ declare const network_validateManifest: typeof validateManifest;
1051
1081
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1052
1082
  declare const network_validateSitemap: typeof validateSitemap;
1053
1083
  declare namespace network {
1054
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1084
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1055
1085
  }
1056
1086
 
1057
- export { type PreferParameter as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, PERMISSIONS_POLICY_FEATURES as U, type ParsedClientHint as V, type ParsedDnsResult as W, type ParsedGeoResult as X, type PermissionsPolicyDirective as Y, type PermissionsPolicyFeatureInput as Z, type PermissionsPolicyResult as _, type AcceptLanguageResult as a, isServerError as a$, type PreferPreference as a0, type PreferResult as a1, type PriorityResult as a2, REFERRER_POLICY_VALUES as a3, type RangeEntry as a4, type RangeEntryInput as a5, type RangeHeaderResult as a6, type ReceivedHop as a7, type ReferrerPolicyEntry as a8, type ReferrerPolicyResult as a9, assessContentTypeRisk as aA, buildAcceptLanguage as aB, buildCacheControl as aC, buildClientHints as aD, buildContentDisposition as aE, buildDnsQueryUrl as aF, buildGeoUrl as aG, buildLinkHeader as aH, buildMapUrl as aI, buildPermissionsPolicy as aJ, buildPreferHeader as aK, buildPriorityHeader as aL, buildRangeHeader as aM, buildReferrerPolicy as aN, buildRetryAfterHeader as aO, buildVaryHeader as aP, buildXContentTypeOptionsHeader as aQ, checkSetCookieHeader as aR, countryCodeToFlag as aS, formatCoordinates as aT, formatTtl as aU, getByCategory as aV, getHeader as aW, getHeadersByCategory as aX, getStatusByCategory as aY, getStatusCode as aZ, isClientError as a_, type ReferrerPolicyValue as aa, type RetryAfterDateResult as ab, type RetryAfterResult as ac, type RetryAfterSecondsResult as ad, type RobotsGroup as ae, type RobotsIssue as af, type RobotsRule as ag, type RobotsValidationResult as ah, STATUS_CODES as ai, type SameSiteValue as aj, type SitemapIndexEntry as ak, type SitemapIssue as al, type SitemapSplitFile as am, type SitemapUrlEntry as an, type SitemapValidationResult as ao, type SplitSitemapOptions as ap, type SplitSitemapResult as aq, type StatusCode as ar, type UaDeviceType as as, type UserAgentInfo as at, type VaryHeaderEntry as au, type VaryHeaderResult as av, type XContentTypeOptionsHeader as aw, type XContentTypeOptionsParseResult as ax, X_CONTENT_TYPE_OPTIONS_HEADER as ay, analyzeEmailHeaders as az, type AuthResultEntry as b, isSuccess as b0, isValidIp as b1, isValidIpv4 as b2, isValidIpv6 as b3, listCloseCodes as b4, lookupCloseCode as b5, parseAcceptLanguage as b6, parseClientHintHeaders as b7, parseContentDisposition as b8, parseContentRangeHeader as b9, parseDnsResponse as ba, parseGeoResponse as bb, parseHar as bc, parseIpv6Address as bd, parsePermissionsPolicy as be, parsePreferHeader as bf, parsePriorityHeader as bg, parseRetryAfterHeader as bh, parseUserAgent as bi, parseVaryHeader as bj, parseXContentTypeOptionsHeader as bk, searchHeaders as bl, searchStatusCodes as bm, splitSitemap as bn, statusCodeToText as bo, typeNumberToLabel as bp, validateDomain as bq, validateHeaderName as br, validateHeaderValue as bs, validateManifest as bt, validateRobotsTxt as bu, validateSitemap as bv, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1087
+ export { type PermissionsPolicyFeatureInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, type MultipartParseResult as U, type MultipartPart as V, PERMISSIONS_POLICY_FEATURES as W, type ParsedClientHint as X, type ParsedDnsResult as Y, type ParsedGeoResult as Z, type PermissionsPolicyDirective as _, type AcceptLanguageResult as a, getStatusByCategory as a$, type PermissionsPolicyResult as a0, type PreferParameter as a1, type PreferPreference as a2, type PreferResult as a3, type PriorityResult as a4, REFERRER_POLICY_VALUES as a5, type RangeEntry as a6, type RangeEntryInput as a7, type RangeHeaderResult as a8, type ReceivedHop as a9, X_CONTENT_TYPE_OPTIONS_HEADER as aA, analyzeEmailHeaders as aB, assessContentTypeRisk as aC, buildAcceptLanguage as aD, buildCacheControl as aE, buildClientHints as aF, buildContentDisposition as aG, buildDnsQueryUrl as aH, buildGeoUrl as aI, buildLinkHeader as aJ, buildMapUrl as aK, buildPermissionsPolicy as aL, buildPreferHeader as aM, buildPriorityHeader as aN, buildRangeHeader as aO, buildReferrerPolicy as aP, buildRetryAfterHeader as aQ, buildVaryHeader as aR, buildXContentTypeOptionsHeader as aS, checkSetCookieHeader as aT, countryCodeToFlag as aU, extractMultipartBoundary as aV, formatCoordinates as aW, formatTtl as aX, getByCategory as aY, getHeader as aZ, getHeadersByCategory as a_, type ReferrerPolicyEntry as aa, type ReferrerPolicyResult as ab, type ReferrerPolicyValue as ac, type RetryAfterDateResult as ad, type RetryAfterResult as ae, type RetryAfterSecondsResult as af, type RobotsGroup as ag, type RobotsIssue as ah, type RobotsRule as ai, type RobotsValidationResult as aj, STATUS_CODES as ak, type SameSiteValue as al, type SitemapIndexEntry as am, type SitemapIssue as an, type SitemapSplitFile as ao, type SitemapUrlEntry as ap, type SitemapValidationResult as aq, type SplitSitemapOptions as ar, type SplitSitemapResult as as, type StatusCode as at, type UaDeviceType as au, type UserAgentInfo as av, type VaryHeaderEntry as aw, type VaryHeaderResult as ax, type XContentTypeOptionsHeader as ay, type XContentTypeOptionsParseResult as az, type AuthResultEntry as b, getStatusCode as b0, isClientError as b1, isServerError as b2, isSuccess as b3, isValidIp as b4, isValidIpv4 as b5, isValidIpv6 as b6, listCloseCodes as b7, lookupCloseCode as b8, parseAcceptLanguage as b9, parseClientHintHeaders as ba, parseContentDisposition as bb, parseContentRangeHeader as bc, parseDnsResponse as bd, parseGeoResponse as be, parseHar as bf, parseIpv6Address as bg, parseMultipartFormData as bh, parsePermissionsPolicy as bi, parsePreferHeader as bj, parsePriorityHeader as bk, parseRetryAfterHeader as bl, parseUserAgent as bm, parseVaryHeader as bn, parseXContentTypeOptionsHeader as bo, searchHeaders as bp, searchStatusCodes as bq, splitSitemap as br, statusCodeToText as bs, typeNumberToLabel as bt, validateDomain as bu, validateHeaderName as bv, validateHeaderValue as bw, validateManifest as bx, validateRobotsTxt as by, validateSitemap as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
@@ -3042,6 +3042,54 @@ function lookupCloseCode(code) {
3042
3042
  }
3043
3043
  return { error: `${code} is outside the defined close code ranges (0-4999); codes 5000 and above have no assigned meaning` };
3044
3044
  }
3045
+ function extractMultipartBoundary(contentType) {
3046
+ if (!contentType) return null;
3047
+ const match = contentType.match(/boundary=(?:"([^"]*)"|([^;\s]+))/i);
3048
+ if (!match) return null;
3049
+ return match[1] ?? match[2] ?? null;
3050
+ }
3051
+ function parseMultipartFormData(body, boundary) {
3052
+ if (!body || !body.trim()) return { error: "Body is empty" };
3053
+ if (!boundary || !boundary.trim()) return { error: "Boundary is required" };
3054
+ const normalized = body.replace(/\r\n/g, "\n");
3055
+ const delimiter = `--${boundary}`;
3056
+ const segments = normalized.split(delimiter);
3057
+ if (segments.length < 3) {
3058
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
3059
+ }
3060
+ const parts = [];
3061
+ for (let i = 1; i < segments.length; i++) {
3062
+ let segment = segments[i];
3063
+ if (segment.startsWith("--")) break;
3064
+ segment = segment.replace(/^\n/, "").replace(/\n$/, "");
3065
+ const headerEnd = segment.indexOf("\n\n");
3066
+ if (headerEnd === -1) continue;
3067
+ const headerBlock = segment.slice(0, headerEnd);
3068
+ const value = segment.slice(headerEnd + 2);
3069
+ const headers = {};
3070
+ for (const line of headerBlock.split("\n")) {
3071
+ const colon = line.indexOf(":");
3072
+ if (colon === -1) continue;
3073
+ headers[line.slice(0, colon).trim().toLowerCase()] = line.slice(colon + 1).trim();
3074
+ }
3075
+ const disposition = headers["content-disposition"] ?? "";
3076
+ const nameMatch = disposition.match(/name="([^"]*)"/);
3077
+ const filenameMatch = disposition.match(/filename="([^"]*)"/);
3078
+ const partContentType = headers["content-type"] ?? "";
3079
+ const isBinary = !!filenameMatch && !partContentType.startsWith("text/") && !partContentType.includes("json") && !partContentType.includes("xml");
3080
+ parts.push({
3081
+ name: nameMatch ? nameMatch[1] : null,
3082
+ filename: filenameMatch ? filenameMatch[1] : null,
3083
+ headers,
3084
+ value,
3085
+ isBinary
3086
+ });
3087
+ }
3088
+ if (parts.length === 0) {
3089
+ return { error: `No parts found for boundary "${boundary}"; check that it matches the boundary used in the body` };
3090
+ }
3091
+ return { boundary, parts };
3092
+ }
3045
3093
 
3046
3094
  exports.CLIENT_HINTS = CLIENT_HINTS;
3047
3095
  exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
@@ -3071,6 +3119,7 @@ exports.buildVaryHeader = buildVaryHeader;
3071
3119
  exports.buildXContentTypeOptionsHeader = buildXContentTypeOptionsHeader;
3072
3120
  exports.checkSetCookieHeader = checkSetCookieHeader;
3073
3121
  exports.countryCodeToFlag = countryCodeToFlag;
3122
+ exports.extractMultipartBoundary = extractMultipartBoundary;
3074
3123
  exports.formatCoordinates = formatCoordinates;
3075
3124
  exports.formatTtl = formatTtl;
3076
3125
  exports.getByCategory = getByCategory;
@@ -3094,6 +3143,7 @@ exports.parseDnsResponse = parseDnsResponse;
3094
3143
  exports.parseGeoResponse = parseGeoResponse;
3095
3144
  exports.parseHar = parseHar;
3096
3145
  exports.parseIpv6Address = parseIpv6Address;
3146
+ exports.parseMultipartFormData = parseMultipartFormData;
3097
3147
  exports.parsePermissionsPolicy = parsePermissionsPolicy;
3098
3148
  exports.parsePreferHeader = parsePreferHeader;
3099
3149
  exports.parsePriorityHeader = parsePriorityHeader;
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HttpHeader, K as Ipv6AddressType, L as Ipv6ParseResult, M as LINK_REL_VALUES, N as LinkHeaderEntry, O as LinkHeaderEntryInput, P as LinkHeaderResult, Q as LinkRel, R as ManifestIconInfo, S as ManifestIssue, T as ManifestValidationResult, U as PERMISSIONS_POLICY_FEATURES, V as ParsedClientHint, W as ParsedDnsResult, X as ParsedGeoResult, Y as PermissionsPolicyDirective, Z as PermissionsPolicyFeatureInput, _ as PermissionsPolicyResult, $ as PreferParameter, a0 as PreferPreference, a1 as PreferResult, a2 as PriorityResult, a3 as REFERRER_POLICY_VALUES, a4 as RangeEntry, a5 as RangeEntryInput, a6 as RangeHeaderResult, a7 as ReceivedHop, a8 as ReferrerPolicyEntry, a9 as ReferrerPolicyResult, aa as ReferrerPolicyValue, ab as RetryAfterDateResult, ac as RetryAfterResult, ad as RetryAfterSecondsResult, ae as RobotsGroup, af as RobotsIssue, ag as RobotsRule, ah as RobotsValidationResult, ai as STATUS_CODES, aj as SameSiteValue, ak as SitemapIndexEntry, al as SitemapIssue, am as SitemapSplitFile, an as SitemapUrlEntry, ao as SitemapValidationResult, ap as SplitSitemapOptions, aq as SplitSitemapResult, ar as StatusCode, as as UaDeviceType, at as UserAgentInfo, au as VaryHeaderEntry, av as VaryHeaderResult, aw as XContentTypeOptionsHeader, ax as XContentTypeOptionsParseResult, ay as X_CONTENT_TYPE_OPTIONS_HEADER, az as analyzeEmailHeaders, aA as assessContentTypeRisk, aB as buildAcceptLanguage, aC as buildCacheControl, aD as buildClientHints, aE as buildContentDisposition, aF as buildDnsQueryUrl, aG as buildGeoUrl, aH as buildLinkHeader, aI as buildMapUrl, aJ as buildPermissionsPolicy, aK as buildPreferHeader, aL as buildPriorityHeader, aM as buildRangeHeader, aN as buildReferrerPolicy, aO as buildRetryAfterHeader, aP as buildVaryHeader, aQ as buildXContentTypeOptionsHeader, aR as checkSetCookieHeader, aS as countryCodeToFlag, aT as formatCoordinates, aU as formatTtl, aV as getByCategory, aW as getHeader, aX as getHeadersByCategory, aY as getStatusByCategory, aZ as getStatusCode, a_ as isClientError, a$ as isServerError, b0 as isSuccess, b1 as isValidIp, b2 as isValidIpv4, b3 as isValidIpv6, b4 as listCloseCodes, b5 as lookupCloseCode, b6 as parseAcceptLanguage, b7 as parseClientHintHeaders, b8 as parseContentDisposition, b9 as parseContentRangeHeader, ba as parseDnsResponse, bb as parseGeoResponse, bc as parseHar, bd as parseIpv6Address, be as parsePermissionsPolicy, bf as parsePreferHeader, bg as parsePriorityHeader, bh as parseRetryAfterHeader, bi as parseUserAgent, bj as parseVaryHeader, bk as parseXContentTypeOptionsHeader, bl as searchHeaders, bm as searchStatusCodes, bn as splitSitemap, bo as statusCodeToText, bp as typeNumberToLabel, bq as validateDomain, br as validateHeaderName, bs as validateHeaderValue, bt as validateManifest, bu as validateRobotsTxt, bv as validateSitemap } from '../network-DewFJy4E.cjs';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HttpHeader, K as Ipv6AddressType, L as Ipv6ParseResult, M as LINK_REL_VALUES, N as LinkHeaderEntry, O as LinkHeaderEntryInput, P as LinkHeaderResult, Q as LinkRel, R as ManifestIconInfo, S as ManifestIssue, T as ManifestValidationResult, U as MultipartParseResult, V as MultipartPart, W as PERMISSIONS_POLICY_FEATURES, X as ParsedClientHint, Y as ParsedDnsResult, Z as ParsedGeoResult, _ as PermissionsPolicyDirective, $ as PermissionsPolicyFeatureInput, a0 as PermissionsPolicyResult, a1 as PreferParameter, a2 as PreferPreference, a3 as PreferResult, a4 as PriorityResult, a5 as REFERRER_POLICY_VALUES, a6 as RangeEntry, a7 as RangeEntryInput, a8 as RangeHeaderResult, a9 as ReceivedHop, aa as ReferrerPolicyEntry, ab as ReferrerPolicyResult, ac as ReferrerPolicyValue, ad as RetryAfterDateResult, ae as RetryAfterResult, af as RetryAfterSecondsResult, ag as RobotsGroup, ah as RobotsIssue, ai as RobotsRule, aj as RobotsValidationResult, ak as STATUS_CODES, al as SameSiteValue, am as SitemapIndexEntry, an as SitemapIssue, ao as SitemapSplitFile, ap as SitemapUrlEntry, aq as SitemapValidationResult, ar as SplitSitemapOptions, as as SplitSitemapResult, at as StatusCode, au as UaDeviceType, av as UserAgentInfo, aw as VaryHeaderEntry, ax as VaryHeaderResult, ay as XContentTypeOptionsHeader, az as XContentTypeOptionsParseResult, aA as X_CONTENT_TYPE_OPTIONS_HEADER, aB as analyzeEmailHeaders, aC as assessContentTypeRisk, aD as buildAcceptLanguage, aE as buildCacheControl, aF as buildClientHints, aG as buildContentDisposition, aH as buildDnsQueryUrl, aI as buildGeoUrl, aJ as buildLinkHeader, aK as buildMapUrl, aL as buildPermissionsPolicy, aM as buildPreferHeader, aN as buildPriorityHeader, aO as buildRangeHeader, aP as buildReferrerPolicy, aQ as buildRetryAfterHeader, aR as buildVaryHeader, aS as buildXContentTypeOptionsHeader, aT as checkSetCookieHeader, aU as countryCodeToFlag, aV as extractMultipartBoundary, aW as formatCoordinates, aX as formatTtl, aY as getByCategory, aZ as getHeader, a_ as getHeadersByCategory, a$ as getStatusByCategory, b0 as getStatusCode, b1 as isClientError, b2 as isServerError, b3 as isSuccess, b4 as isValidIp, b5 as isValidIpv4, b6 as isValidIpv6, b7 as listCloseCodes, b8 as lookupCloseCode, b9 as parseAcceptLanguage, ba as parseClientHintHeaders, bb as parseContentDisposition, bc as parseContentRangeHeader, bd as parseDnsResponse, be as parseGeoResponse, bf as parseHar, bg as parseIpv6Address, bh as parseMultipartFormData, bi as parsePermissionsPolicy, bj as parsePreferHeader, bk as parsePriorityHeader, bl as parseRetryAfterHeader, bm as parseUserAgent, bn as parseVaryHeader, bo as parseXContentTypeOptionsHeader, bp as searchHeaders, bq as searchStatusCodes, br as splitSitemap, bs as statusCodeToText, bt as typeNumberToLabel, bu as validateDomain, bv as validateHeaderName, bw as validateHeaderValue, bx as validateManifest, by as validateRobotsTxt, bz as validateSitemap } from '../network-DZTfMAk0.cjs';
@@ -1 +1 @@
1
- export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HttpHeader, K as Ipv6AddressType, L as Ipv6ParseResult, M as LINK_REL_VALUES, N as LinkHeaderEntry, O as LinkHeaderEntryInput, P as LinkHeaderResult, Q as LinkRel, R as ManifestIconInfo, S as ManifestIssue, T as ManifestValidationResult, U as PERMISSIONS_POLICY_FEATURES, V as ParsedClientHint, W as ParsedDnsResult, X as ParsedGeoResult, Y as PermissionsPolicyDirective, Z as PermissionsPolicyFeatureInput, _ as PermissionsPolicyResult, $ as PreferParameter, a0 as PreferPreference, a1 as PreferResult, a2 as PriorityResult, a3 as REFERRER_POLICY_VALUES, a4 as RangeEntry, a5 as RangeEntryInput, a6 as RangeHeaderResult, a7 as ReceivedHop, a8 as ReferrerPolicyEntry, a9 as ReferrerPolicyResult, aa as ReferrerPolicyValue, ab as RetryAfterDateResult, ac as RetryAfterResult, ad as RetryAfterSecondsResult, ae as RobotsGroup, af as RobotsIssue, ag as RobotsRule, ah as RobotsValidationResult, ai as STATUS_CODES, aj as SameSiteValue, ak as SitemapIndexEntry, al as SitemapIssue, am as SitemapSplitFile, an as SitemapUrlEntry, ao as SitemapValidationResult, ap as SplitSitemapOptions, aq as SplitSitemapResult, ar as StatusCode, as as UaDeviceType, at as UserAgentInfo, au as VaryHeaderEntry, av as VaryHeaderResult, aw as XContentTypeOptionsHeader, ax as XContentTypeOptionsParseResult, ay as X_CONTENT_TYPE_OPTIONS_HEADER, az as analyzeEmailHeaders, aA as assessContentTypeRisk, aB as buildAcceptLanguage, aC as buildCacheControl, aD as buildClientHints, aE as buildContentDisposition, aF as buildDnsQueryUrl, aG as buildGeoUrl, aH as buildLinkHeader, aI as buildMapUrl, aJ as buildPermissionsPolicy, aK as buildPreferHeader, aL as buildPriorityHeader, aM as buildRangeHeader, aN as buildReferrerPolicy, aO as buildRetryAfterHeader, aP as buildVaryHeader, aQ as buildXContentTypeOptionsHeader, aR as checkSetCookieHeader, aS as countryCodeToFlag, aT as formatCoordinates, aU as formatTtl, aV as getByCategory, aW as getHeader, aX as getHeadersByCategory, aY as getStatusByCategory, aZ as getStatusCode, a_ as isClientError, a$ as isServerError, b0 as isSuccess, b1 as isValidIp, b2 as isValidIpv4, b3 as isValidIpv6, b4 as listCloseCodes, b5 as lookupCloseCode, b6 as parseAcceptLanguage, b7 as parseClientHintHeaders, b8 as parseContentDisposition, b9 as parseContentRangeHeader, ba as parseDnsResponse, bb as parseGeoResponse, bc as parseHar, bd as parseIpv6Address, be as parsePermissionsPolicy, bf as parsePreferHeader, bg as parsePriorityHeader, bh as parseRetryAfterHeader, bi as parseUserAgent, bj as parseVaryHeader, bk as parseXContentTypeOptionsHeader, bl as searchHeaders, bm as searchStatusCodes, bn as splitSitemap, bo as statusCodeToText, bp as typeNumberToLabel, bq as validateDomain, br as validateHeaderName, bs as validateHeaderValue, bt as validateManifest, bu as validateRobotsTxt, bv as validateSitemap } from '../network-DewFJy4E.js';
1
+ export { A as AcceptLanguageEntry, a as AcceptLanguageResult, b as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, c as CacheControlDirective, d as CacheControlOptions, e as CacheControlResult, f as ClientHintDef, g as ClientHintValueType, h as ClientHintsBuildResult, i as ClientHintsParseResult, j as CloseCodeInfo, k as CloseCodeRange, l as ContentDispositionBuildOptions, m as ContentDispositionBuildResult, o as ContentDispositionParseResult, p as ContentRangeResult, q as ContentTypeRiskResult, r as ContentTypeSniffRisk, s as CookieAttributes, t as CookieCheckResult, D as DNS_RECORD_TYPES, u as DnsRecord, v as DnsRecordType, w as DnsResponse, E as EmailHeaderAnalysis, x as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, y as HarEntry, z as HarParseResult, F as HarSummary, I as HeaderCategory, J as HttpHeader, K as Ipv6AddressType, L as Ipv6ParseResult, M as LINK_REL_VALUES, N as LinkHeaderEntry, O as LinkHeaderEntryInput, P as LinkHeaderResult, Q as LinkRel, R as ManifestIconInfo, S as ManifestIssue, T as ManifestValidationResult, U as MultipartParseResult, V as MultipartPart, W as PERMISSIONS_POLICY_FEATURES, X as ParsedClientHint, Y as ParsedDnsResult, Z as ParsedGeoResult, _ as PermissionsPolicyDirective, $ as PermissionsPolicyFeatureInput, a0 as PermissionsPolicyResult, a1 as PreferParameter, a2 as PreferPreference, a3 as PreferResult, a4 as PriorityResult, a5 as REFERRER_POLICY_VALUES, a6 as RangeEntry, a7 as RangeEntryInput, a8 as RangeHeaderResult, a9 as ReceivedHop, aa as ReferrerPolicyEntry, ab as ReferrerPolicyResult, ac as ReferrerPolicyValue, ad as RetryAfterDateResult, ae as RetryAfterResult, af as RetryAfterSecondsResult, ag as RobotsGroup, ah as RobotsIssue, ai as RobotsRule, aj as RobotsValidationResult, ak as STATUS_CODES, al as SameSiteValue, am as SitemapIndexEntry, an as SitemapIssue, ao as SitemapSplitFile, ap as SitemapUrlEntry, aq as SitemapValidationResult, ar as SplitSitemapOptions, as as SplitSitemapResult, at as StatusCode, au as UaDeviceType, av as UserAgentInfo, aw as VaryHeaderEntry, ax as VaryHeaderResult, ay as XContentTypeOptionsHeader, az as XContentTypeOptionsParseResult, aA as X_CONTENT_TYPE_OPTIONS_HEADER, aB as analyzeEmailHeaders, aC as assessContentTypeRisk, aD as buildAcceptLanguage, aE as buildCacheControl, aF as buildClientHints, aG as buildContentDisposition, aH as buildDnsQueryUrl, aI as buildGeoUrl, aJ as buildLinkHeader, aK as buildMapUrl, aL as buildPermissionsPolicy, aM as buildPreferHeader, aN as buildPriorityHeader, aO as buildRangeHeader, aP as buildReferrerPolicy, aQ as buildRetryAfterHeader, aR as buildVaryHeader, aS as buildXContentTypeOptionsHeader, aT as checkSetCookieHeader, aU as countryCodeToFlag, aV as extractMultipartBoundary, aW as formatCoordinates, aX as formatTtl, aY as getByCategory, aZ as getHeader, a_ as getHeadersByCategory, a$ as getStatusByCategory, b0 as getStatusCode, b1 as isClientError, b2 as isServerError, b3 as isSuccess, b4 as isValidIp, b5 as isValidIpv4, b6 as isValidIpv6, b7 as listCloseCodes, b8 as lookupCloseCode, b9 as parseAcceptLanguage, ba as parseClientHintHeaders, bb as parseContentDisposition, bc as parseContentRangeHeader, bd as parseDnsResponse, be as parseGeoResponse, bf as parseHar, bg as parseIpv6Address, bh as parseMultipartFormData, bi as parsePermissionsPolicy, bj as parsePreferHeader, bk as parsePriorityHeader, bl as parseRetryAfterHeader, bm as parseUserAgent, bn as parseVaryHeader, bo as parseXContentTypeOptionsHeader, bp as searchHeaders, bq as searchStatusCodes, br as splitSitemap, bs as statusCodeToText, bt as typeNumberToLabel, bu as validateDomain, bv as validateHeaderName, bw as validateHeaderValue, bx as validateManifest, by as validateRobotsTxt, bz as validateSitemap } from '../network-DZTfMAk0.js';
@@ -1,2 +1,2 @@
1
- export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, checkSetCookieHeader, countryCodeToFlag, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, lookupCloseCode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-43L7H3L2.js';
1
+ export { CLIENT_HINTS, DNS_RECORD_TYPES, HTTP_HEADERS, LINK_REL_VALUES, PERMISSIONS_POLICY_FEATURES, REFERRER_POLICY_VALUES, STATUS_CODES, X_CONTENT_TYPE_OPTIONS_HEADER, analyzeEmailHeaders, assessContentTypeRisk, buildAcceptLanguage, buildCacheControl, buildClientHints, buildContentDisposition, buildDnsQueryUrl, buildGeoUrl, buildLinkHeader, buildMapUrl, buildPermissionsPolicy, buildPreferHeader, buildPriorityHeader, buildRangeHeader, buildReferrerPolicy, buildRetryAfterHeader, buildVaryHeader, buildXContentTypeOptionsHeader, checkSetCookieHeader, countryCodeToFlag, extractMultipartBoundary, formatCoordinates, formatTtl, getByCategory, getHeader, getHeadersByCategory, getStatusByCategory, getStatusCode, isClientError, isServerError, isSuccess, isValidIp, isValidIpv4, isValidIpv6, listCloseCodes, lookupCloseCode, parseAcceptLanguage, parseClientHintHeaders, parseContentDisposition, parseContentRangeHeader, parseDnsResponse, parseGeoResponse, parseHar, parseIpv6Address, parseMultipartFormData, parsePermissionsPolicy, parsePreferHeader, parsePriorityHeader, parseRetryAfterHeader, parseUserAgent, parseVaryHeader, parseXContentTypeOptionsHeader, searchHeaders, searchStatusCodes, splitSitemap, statusCodeToText, typeNumberToLabel, validateDomain, validateHeaderName, validateHeaderValue, validateManifest, validateRobotsTxt, validateSitemap } from '../chunk-IANBS5Y3.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -2378,6 +2378,27 @@ function planDebtPayoff(debts, extraMonthlyPayment = 0) {
2378
2378
  }
2379
2379
  };
2380
2380
  }
2381
+ function calculateLoanRefinance(currentBalance, currentRatePercent, currentRemainingMonths, newRatePercent, newTermMonths, closingCosts) {
2382
+ const current = calculateLoan(currentBalance, currentRatePercent, currentRemainingMonths);
2383
+ if ("error" in current) return current;
2384
+ const refinanced = calculateLoan(currentBalance, newRatePercent, newTermMonths);
2385
+ if ("error" in refinanced) return refinanced;
2386
+ if (!Number.isFinite(closingCosts) || closingCosts < 0) {
2387
+ return { error: "Closing costs must be zero or a positive number" };
2388
+ }
2389
+ const monthlySavings = round2(current.monthlyPayment - refinanced.monthlyPayment);
2390
+ const breakEvenMonths = monthlySavings > 0 ? Math.ceil(closingCosts / monthlySavings) : null;
2391
+ return {
2392
+ currentMonthlyPayment: current.monthlyPayment,
2393
+ newMonthlyPayment: refinanced.monthlyPayment,
2394
+ monthlySavings,
2395
+ closingCosts: round2(closingCosts),
2396
+ breakEvenMonths,
2397
+ currentTotalInterest: current.totalInterest,
2398
+ newTotalInterest: refinanced.totalInterest,
2399
+ totalInterestSavings: round2(current.totalInterest - refinanced.totalInterest)
2400
+ };
2401
+ }
2381
2402
 
2382
2403
  exports.BASE_LABELS = BASE_LABELS;
2383
2404
  exports.BASE_PREFIXES = BASE_PREFIXES;
@@ -2413,6 +2434,7 @@ exports.calculateExtraPaymentPayoff = calculateExtraPaymentPayoff;
2413
2434
  exports.calculateFreelancerRate = calculateFreelancerRate;
2414
2435
  exports.calculateGpa = calculateGpa;
2415
2436
  exports.calculateLoan = calculateLoan;
2437
+ exports.calculateLoanRefinance = calculateLoanRefinance;
2416
2438
  exports.calculateMarginMarkup = calculateMarginMarkup;
2417
2439
  exports.calculateMovingAverages = calculateMovingAverages;
2418
2440
  exports.calculatePaybackPeriod = calculatePaybackPeriod;
@@ -1 +1 @@
1
- export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as LoanBalanceInput, ah as LoanBalanceResult, ai as LoanResult, aj as MarginMarkupField, ak as MarginMarkupInput, al as MarginMarkupResult, am as MovingAveragePoint, an as MovingAverageResult, ao as NotationStyle, ap as NumberBase, aq as PaybackPeriodInput, ar as PaybackPeriodResult, as as PercentChangeDirection, at as PercentageChangeResult, au as Permission, av as PxConvertResult, aw as RoiInput, ax as RoiResult, ay as RuleOf72Direction, az as RuleOf72Result, aA as SavingsGoalInput, aB as SavingsGoalMode, aC as SavingsGoalResult, aD as SemverVersion, aE as SimpleInterestResult, aF as SubnetInfo, aG as SuccessiveDiscountResult, aH as SuccessiveDiscountStep, aI as TaxDirection, aJ as TaxResult, aK as TimeValueDirection, aL as TimeValueResult, aM as TipSplitResult, aN as USD_DENOMINATIONS, aO as UnitPriceItem, aP as UnitPriceResult, aQ as UtilizationTier, aR as VideoBitrateInput, aS as VideoBitrateMode, aT as VideoBitrateResult, aU as ViewportConvertResult, aV as applySuccessiveDiscounts, aW as autoFormat, aX as bumpVersion, aY as calcAspectRatio, aZ as calcSubnet, a_ as calculateBlendedLoanRate, a$ as calculateBreakEven, b0 as calculateCashBreakdown, b1 as calculateCashRounding, b2 as calculateCdMaturity, b3 as calculateChange, b4 as calculateCompoundInterest, b5 as calculateCreditUtilization, b6 as calculateDebtToIncomeRatio, b7 as calculateDepreciationSchedule, b8 as calculateDiscount, b9 as calculateEmi, ba as calculateExtraPaymentPayoff, bb as calculateFreelancerRate, bc as calculateGpa, bd as calculateLoan, be as calculateMarginMarkup, bf as calculateMovingAverages, bg as calculatePaybackPeriod, bh as calculatePercentageChange, bi as calculateRoi, bj as calculateRuleOf72, bk as calculateSavingsGoal, bl as calculateSimpleInterest, bm as calculateTax, bn as calculateTimeValue, bo as calculateTipSplit, bp as calculateVideoBitrate, bq as compareSemver, br as compareUnitPrices, bs as convert, bt as convertAprApy, bu as convertBytes, bv as convertIp, bw as coverBox, bx as decimalToIp, by as decimalToIpCidr, bz as describePermissions, bA as fitIntoBox, bB as formatNumber, bC as formatValue, bD as formatVwValue, bE as formatWithSeparator, bF as gcd, bG as ipFromBinary, bH as ipFromDecimal, bI as ipFromHex, bJ as ipToBinary, bK as ipToDecimal, bL as ipToDecimalCidr, bM as ipToHex, bN as ipToOctal, bO as isValid, bP as isValidCidr, bQ as isValidIp, bR as isValidIpv4, bS as marginToMarkup, bT as markupToMargin, bU as octalToPermissions, bV as parseFileSize, bW as parseInput, bX as parseNumberString, bY as parseSemver, bZ as permissionsToChmod, b_ as permissionsToOctal, b$ as permissionsToSymbolic, c0 as planDebtPayoff, c1 as ptToPx, c2 as pxToAll, c3 as pxToViewport, c4 as remToPx, c5 as satisfiesRange, c6 as scaleByHeight, c7 as scaleByWidth, c8 as sortVersions, c9 as splitSubnet, ca as symbolicToPermissions, cb as validateBarcode, cc as validateCardNumber, cd as validateIban, ce as validateIsbn, cf as viewportToPx } from '../units-CLJ16Zzv.cjs';
1
+ export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as LoanBalanceInput, ah as LoanBalanceResult, ai as LoanRefinanceResult, aj as LoanResult, ak as MarginMarkupField, al as MarginMarkupInput, am as MarginMarkupResult, an as MovingAveragePoint, ao as MovingAverageResult, ap as NotationStyle, aq as NumberBase, ar as PaybackPeriodInput, as as PaybackPeriodResult, at as PercentChangeDirection, au as PercentageChangeResult, av as Permission, aw as PxConvertResult, ax as RoiInput, ay as RoiResult, az as RuleOf72Direction, aA as RuleOf72Result, aB as SavingsGoalInput, aC as SavingsGoalMode, aD as SavingsGoalResult, aE as SemverVersion, aF as SimpleInterestResult, aG as SubnetInfo, aH as SuccessiveDiscountResult, aI as SuccessiveDiscountStep, aJ as TaxDirection, aK as TaxResult, aL as TimeValueDirection, aM as TimeValueResult, aN as TipSplitResult, aO as USD_DENOMINATIONS, aP as UnitPriceItem, aQ as UnitPriceResult, aR as UtilizationTier, aS as VideoBitrateInput, aT as VideoBitrateMode, aU as VideoBitrateResult, aV as ViewportConvertResult, aW as applySuccessiveDiscounts, aX as autoFormat, aY as bumpVersion, aZ as calcAspectRatio, a_ as calcSubnet, a$ as calculateBlendedLoanRate, b0 as calculateBreakEven, b1 as calculateCashBreakdown, b2 as calculateCashRounding, b3 as calculateCdMaturity, b4 as calculateChange, b5 as calculateCompoundInterest, b6 as calculateCreditUtilization, b7 as calculateDebtToIncomeRatio, b8 as calculateDepreciationSchedule, b9 as calculateDiscount, ba as calculateEmi, bb as calculateExtraPaymentPayoff, bc as calculateFreelancerRate, bd as calculateGpa, be as calculateLoan, bf as calculateLoanRefinance, bg as calculateMarginMarkup, bh as calculateMovingAverages, bi as calculatePaybackPeriod, bj as calculatePercentageChange, bk as calculateRoi, bl as calculateRuleOf72, bm as calculateSavingsGoal, bn as calculateSimpleInterest, bo as calculateTax, bp as calculateTimeValue, bq as calculateTipSplit, br as calculateVideoBitrate, bs as compareSemver, bt as compareUnitPrices, bu as convert, bv as convertAprApy, bw as convertBytes, bx as convertIp, by as coverBox, bz as decimalToIp, bA as decimalToIpCidr, bB as describePermissions, bC as fitIntoBox, bD as formatNumber, bE as formatValue, bF as formatVwValue, bG as formatWithSeparator, bH as gcd, bI as ipFromBinary, bJ as ipFromDecimal, bK as ipFromHex, bL as ipToBinary, bM as ipToDecimal, bN as ipToDecimalCidr, bO as ipToHex, bP as ipToOctal, bQ as isValid, bR as isValidCidr, bS as isValidIp, bT as isValidIpv4, bU as marginToMarkup, bV as markupToMargin, bW as octalToPermissions, bX as parseFileSize, bY as parseInput, bZ as parseNumberString, b_ as parseSemver, b$ as permissionsToChmod, c0 as permissionsToOctal, c1 as permissionsToSymbolic, c2 as planDebtPayoff, c3 as ptToPx, c4 as pxToAll, c5 as pxToViewport, c6 as remToPx, c7 as satisfiesRange, c8 as scaleByHeight, c9 as scaleByWidth, ca as sortVersions, cb as splitSubnet, cc as symbolicToPermissions, cd as validateBarcode, ce as validateCardNumber, cf as validateIban, cg as validateIsbn, ch as viewportToPx } from '../units-DPefgzmH.cjs';
@@ -1 +1 @@
1
- export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as LoanBalanceInput, ah as LoanBalanceResult, ai as LoanResult, aj as MarginMarkupField, ak as MarginMarkupInput, al as MarginMarkupResult, am as MovingAveragePoint, an as MovingAverageResult, ao as NotationStyle, ap as NumberBase, aq as PaybackPeriodInput, ar as PaybackPeriodResult, as as PercentChangeDirection, at as PercentageChangeResult, au as Permission, av as PxConvertResult, aw as RoiInput, ax as RoiResult, ay as RuleOf72Direction, az as RuleOf72Result, aA as SavingsGoalInput, aB as SavingsGoalMode, aC as SavingsGoalResult, aD as SemverVersion, aE as SimpleInterestResult, aF as SubnetInfo, aG as SuccessiveDiscountResult, aH as SuccessiveDiscountStep, aI as TaxDirection, aJ as TaxResult, aK as TimeValueDirection, aL as TimeValueResult, aM as TipSplitResult, aN as USD_DENOMINATIONS, aO as UnitPriceItem, aP as UnitPriceResult, aQ as UtilizationTier, aR as VideoBitrateInput, aS as VideoBitrateMode, aT as VideoBitrateResult, aU as ViewportConvertResult, aV as applySuccessiveDiscounts, aW as autoFormat, aX as bumpVersion, aY as calcAspectRatio, aZ as calcSubnet, a_ as calculateBlendedLoanRate, a$ as calculateBreakEven, b0 as calculateCashBreakdown, b1 as calculateCashRounding, b2 as calculateCdMaturity, b3 as calculateChange, b4 as calculateCompoundInterest, b5 as calculateCreditUtilization, b6 as calculateDebtToIncomeRatio, b7 as calculateDepreciationSchedule, b8 as calculateDiscount, b9 as calculateEmi, ba as calculateExtraPaymentPayoff, bb as calculateFreelancerRate, bc as calculateGpa, bd as calculateLoan, be as calculateMarginMarkup, bf as calculateMovingAverages, bg as calculatePaybackPeriod, bh as calculatePercentageChange, bi as calculateRoi, bj as calculateRuleOf72, bk as calculateSavingsGoal, bl as calculateSimpleInterest, bm as calculateTax, bn as calculateTimeValue, bo as calculateTipSplit, bp as calculateVideoBitrate, bq as compareSemver, br as compareUnitPrices, bs as convert, bt as convertAprApy, bu as convertBytes, bv as convertIp, bw as coverBox, bx as decimalToIp, by as decimalToIpCidr, bz as describePermissions, bA as fitIntoBox, bB as formatNumber, bC as formatValue, bD as formatVwValue, bE as formatWithSeparator, bF as gcd, bG as ipFromBinary, bH as ipFromDecimal, bI as ipFromHex, bJ as ipToBinary, bK as ipToDecimal, bL as ipToDecimalCidr, bM as ipToHex, bN as ipToOctal, bO as isValid, bP as isValidCidr, bQ as isValidIp, bR as isValidIpv4, bS as marginToMarkup, bT as markupToMargin, bU as octalToPermissions, bV as parseFileSize, bW as parseInput, bX as parseNumberString, bY as parseSemver, bZ as permissionsToChmod, b_ as permissionsToOctal, b$ as permissionsToSymbolic, c0 as planDebtPayoff, c1 as ptToPx, c2 as pxToAll, c3 as pxToViewport, c4 as remToPx, c5 as satisfiesRange, c6 as scaleByHeight, c7 as scaleByWidth, c8 as sortVersions, c9 as splitSubnet, ca as symbolicToPermissions, cb as validateBarcode, cc as validateCardNumber, cd as validateIban, ce as validateIsbn, cf as viewportToPx } from '../units-CLJ16Zzv.js';
1
+ export { A as AmortizationRow, a as AprApyDirection, b as AprApyResult, c as AspectRatioResult, B as BASE_LABELS, d as BASE_PREFIXES, e as BYTE_UNITS, f as BarcodeFormat, g as BarcodeValidationResult, h as BaseConvertResult, i as BlendedLoanRateResult, j as BreakEvenInput, k as BreakEvenResult, l as ByteConvertResult, m as ByteUnit, C as COMMON_CURRENCIES, n as COMMON_LOCALES, o as COMMON_PERMISSIONS, p as COMMON_RATIOS, q as COMMON_SIZES, r as COMMON_TAX_RATES, s as COMMON_TIP_PERCENTAGES, t as COMMON_VIEWPORTS, v as CardValidationResult, w as CashBreakdownResult, x as CashChangeResult, y as CashDenominationItem, z as CashRoundingMode, D as CashRoundingResult, E as CdMaturityResult, F as CompareUnitPricesResult, G as CompoundInterestResult, H as CompoundYearRow, I as CreditAccountInput, J as CreditAccountResult, K as CreditUtilizationResult, L as DebtItemInput, M as DebtItemResult, N as DebtPayoffComparison, O as DebtPayoffInput, P as DebtPayoffPlanResult, Q as DebtPayoffScheduleEntry, R as DebtPayoffStrategy, S as DebtPayoffStrategyResult, T as DebtToIncomeRatioResult, U as DepreciationMethod, V as DepreciationResult, W as DepreciationYear, X as Dimensions, Y as DiscountField, Z as DiscountInput, _ as DiscountResult, $ as DtiTier, a0 as EmiResult, a1 as EmiTenureUnit, a2 as EmiYearlyBreakdownRow, a3 as ExtraPaymentPayoffResult, a4 as FilePermissions, a5 as FormatOptions, a6 as FreelancerRateInput, a7 as FreelancerRateResult, a8 as GPA_GRADE_POINTS, a9 as GpaCourse, aa as GpaCourseResult, ab as GpaResult, ac as IbanValidationResult, ad as IpConversion, ae as IsbnFormat, af as IsbnResult, ag as LoanBalanceInput, ah as LoanBalanceResult, ai as LoanRefinanceResult, aj as LoanResult, ak as MarginMarkupField, al as MarginMarkupInput, am as MarginMarkupResult, an as MovingAveragePoint, ao as MovingAverageResult, ap as NotationStyle, aq as NumberBase, ar as PaybackPeriodInput, as as PaybackPeriodResult, at as PercentChangeDirection, au as PercentageChangeResult, av as Permission, aw as PxConvertResult, ax as RoiInput, ay as RoiResult, az as RuleOf72Direction, aA as RuleOf72Result, aB as SavingsGoalInput, aC as SavingsGoalMode, aD as SavingsGoalResult, aE as SemverVersion, aF as SimpleInterestResult, aG as SubnetInfo, aH as SuccessiveDiscountResult, aI as SuccessiveDiscountStep, aJ as TaxDirection, aK as TaxResult, aL as TimeValueDirection, aM as TimeValueResult, aN as TipSplitResult, aO as USD_DENOMINATIONS, aP as UnitPriceItem, aQ as UnitPriceResult, aR as UtilizationTier, aS as VideoBitrateInput, aT as VideoBitrateMode, aU as VideoBitrateResult, aV as ViewportConvertResult, aW as applySuccessiveDiscounts, aX as autoFormat, aY as bumpVersion, aZ as calcAspectRatio, a_ as calcSubnet, a$ as calculateBlendedLoanRate, b0 as calculateBreakEven, b1 as calculateCashBreakdown, b2 as calculateCashRounding, b3 as calculateCdMaturity, b4 as calculateChange, b5 as calculateCompoundInterest, b6 as calculateCreditUtilization, b7 as calculateDebtToIncomeRatio, b8 as calculateDepreciationSchedule, b9 as calculateDiscount, ba as calculateEmi, bb as calculateExtraPaymentPayoff, bc as calculateFreelancerRate, bd as calculateGpa, be as calculateLoan, bf as calculateLoanRefinance, bg as calculateMarginMarkup, bh as calculateMovingAverages, bi as calculatePaybackPeriod, bj as calculatePercentageChange, bk as calculateRoi, bl as calculateRuleOf72, bm as calculateSavingsGoal, bn as calculateSimpleInterest, bo as calculateTax, bp as calculateTimeValue, bq as calculateTipSplit, br as calculateVideoBitrate, bs as compareSemver, bt as compareUnitPrices, bu as convert, bv as convertAprApy, bw as convertBytes, bx as convertIp, by as coverBox, bz as decimalToIp, bA as decimalToIpCidr, bB as describePermissions, bC as fitIntoBox, bD as formatNumber, bE as formatValue, bF as formatVwValue, bG as formatWithSeparator, bH as gcd, bI as ipFromBinary, bJ as ipFromDecimal, bK as ipFromHex, bL as ipToBinary, bM as ipToDecimal, bN as ipToDecimalCidr, bO as ipToHex, bP as ipToOctal, bQ as isValid, bR as isValidCidr, bS as isValidIp, bT as isValidIpv4, bU as marginToMarkup, bV as markupToMargin, bW as octalToPermissions, bX as parseFileSize, bY as parseInput, bZ as parseNumberString, b_ as parseSemver, b$ as permissionsToChmod, c0 as permissionsToOctal, c1 as permissionsToSymbolic, c2 as planDebtPayoff, c3 as ptToPx, c4 as pxToAll, c5 as pxToViewport, c6 as remToPx, c7 as satisfiesRange, c8 as scaleByHeight, c9 as scaleByWidth, ca as sortVersions, cb as splitSubnet, cc as symbolicToPermissions, cd as validateBarcode, ce as validateCardNumber, cf as validateIban, cg as validateIsbn, ch as viewportToPx } from '../units-DPefgzmH.js';
@@ -1,2 +1,2 @@
1
- export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx } from '../chunk-YTH76KAF.js';
1
+ export { BASE_LABELS, BASE_PREFIXES, BYTE_UNITS, COMMON_CURRENCIES, COMMON_LOCALES, COMMON_PERMISSIONS, COMMON_RATIOS, COMMON_SIZES, COMMON_TAX_RATES, COMMON_TIP_PERCENTAGES, COMMON_VIEWPORTS, GPA_GRADE_POINTS, USD_DENOMINATIONS, applySuccessiveDiscounts, autoFormat, bumpVersion, calcAspectRatio, calcSubnet, calculateBlendedLoanRate, calculateBreakEven, calculateCashBreakdown, calculateCashRounding, calculateCdMaturity, calculateChange, calculateCompoundInterest, calculateCreditUtilization, calculateDebtToIncomeRatio, calculateDepreciationSchedule, calculateDiscount, calculateEmi, calculateExtraPaymentPayoff, calculateFreelancerRate, calculateGpa, calculateLoan, calculateLoanRefinance, calculateMarginMarkup, calculateMovingAverages, calculatePaybackPeriod, calculatePercentageChange, calculateRoi, calculateRuleOf72, calculateSavingsGoal, calculateSimpleInterest, calculateTax, calculateTimeValue, calculateTipSplit, calculateVideoBitrate, compareSemver, compareUnitPrices, convert, convertAprApy, convertBytes, convertIp, coverBox, decimalToIp, decimalToIpCidr, describePermissions, fitIntoBox, formatNumber, formatValue, formatVwValue, formatWithSeparator, gcd, ipFromBinary, ipFromDecimal, ipFromHex, ipToBinary, ipToDecimal, ipToDecimalCidr, ipToHex, ipToOctal, isValid, isValidCidr, isValidIp, isValidIpv4, marginToMarkup, markupToMargin, octalToPermissions, parseFileSize, parseInput, parseNumberString, parseSemver, permissionsToChmod, permissionsToOctal, permissionsToSymbolic, planDebtPayoff, ptToPx, pxToAll, pxToViewport, remToPx, satisfiesRange, scaleByHeight, scaleByWidth, sortVersions, splitSubnet, symbolicToPermissions, validateBarcode, validateCardNumber, validateIban, validateIsbn, viewportToPx } from '../chunk-4HNHEOJL.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -1151,6 +1151,26 @@ interface DebtPayoffPlanResult {
1151
1151
  declare function planDebtPayoff(debts: DebtPayoffInput[], extraMonthlyPayment?: number): DebtPayoffPlanResult | {
1152
1152
  error: string;
1153
1153
  };
1154
+ interface LoanRefinanceResult {
1155
+ currentMonthlyPayment: number;
1156
+ newMonthlyPayment: number;
1157
+ monthlySavings: number;
1158
+ closingCosts: number;
1159
+ breakEvenMonths: number | null;
1160
+ currentTotalInterest: number;
1161
+ newTotalInterest: number;
1162
+ totalInterestSavings: number;
1163
+ }
1164
+ /**
1165
+ * Compare a current loan's remaining payments against a new refinanced loan
1166
+ * on the same outstanding balance, and compute the monthly savings and the
1167
+ * break-even month where cumulative monthly savings recoup the closing
1168
+ * costs. Reuses calculateLoan for both the current loan's remaining
1169
+ * amortization and the new loan's amortization.
1170
+ */
1171
+ declare function calculateLoanRefinance(currentBalance: number, currentRatePercent: number, currentRemainingMonths: number, newRatePercent: number, newTermMonths: number, closingCosts: number): LoanRefinanceResult | {
1172
+ error: string;
1173
+ };
1154
1174
 
1155
1175
  type units_AmortizationRow = AmortizationRow;
1156
1176
  type units_AprApyDirection = AprApyDirection;
@@ -1223,6 +1243,7 @@ type units_IsbnFormat = IsbnFormat;
1223
1243
  type units_IsbnResult = IsbnResult;
1224
1244
  type units_LoanBalanceInput = LoanBalanceInput;
1225
1245
  type units_LoanBalanceResult = LoanBalanceResult;
1246
+ type units_LoanRefinanceResult = LoanRefinanceResult;
1226
1247
  type units_LoanResult = LoanResult;
1227
1248
  type units_MarginMarkupField = MarginMarkupField;
1228
1249
  type units_MarginMarkupInput = MarginMarkupInput;
@@ -1283,6 +1304,7 @@ declare const units_calculateExtraPaymentPayoff: typeof calculateExtraPaymentPay
1283
1304
  declare const units_calculateFreelancerRate: typeof calculateFreelancerRate;
1284
1305
  declare const units_calculateGpa: typeof calculateGpa;
1285
1306
  declare const units_calculateLoan: typeof calculateLoan;
1307
+ declare const units_calculateLoanRefinance: typeof calculateLoanRefinance;
1286
1308
  declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
1287
1309
  declare const units_calculateMovingAverages: typeof calculateMovingAverages;
1288
1310
  declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
@@ -1350,7 +1372,7 @@ declare const units_validateIban: typeof validateIban;
1350
1372
  declare const units_validateIsbn: typeof validateIsbn;
1351
1373
  declare const units_viewportToPx: typeof viewportToPx;
1352
1374
  declare namespace units {
1353
- export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1375
+ export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1354
1376
  }
1355
1377
 
1356
- export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, calculateBreakEven as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type SavingsGoalInput as aA, type SavingsGoalMode as aB, type SavingsGoalResult as aC, type SemverVersion as aD, type SimpleInterestResult as aE, type SubnetInfo as aF, type SuccessiveDiscountResult as aG, type SuccessiveDiscountStep as aH, type TaxDirection as aI, type TaxResult as aJ, type TimeValueDirection as aK, type TimeValueResult as aL, type TipSplitResult as aM, USD_DENOMINATIONS as aN, type UnitPriceItem as aO, type UnitPriceResult as aP, type UtilizationTier as aQ, type VideoBitrateInput as aR, type VideoBitrateMode as aS, type VideoBitrateResult as aT, type ViewportConvertResult as aU, applySuccessiveDiscounts as aV, autoFormat as aW, bumpVersion as aX, calcAspectRatio as aY, calcSubnet as aZ, calculateBlendedLoanRate as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type LoanBalanceInput as ag, type LoanBalanceResult as ah, type LoanResult as ai, type MarginMarkupField as aj, type MarginMarkupInput as ak, type MarginMarkupResult as al, type MovingAveragePoint as am, type MovingAverageResult as an, type NotationStyle as ao, type NumberBase as ap, type PaybackPeriodInput as aq, type PaybackPeriodResult as ar, type PercentChangeDirection as as, type PercentageChangeResult as at, type Permission as au, type PxConvertResult as av, type RoiInput as aw, type RoiResult as ax, type RuleOf72Direction as ay, type RuleOf72Result as az, type AprApyResult as b, permissionsToSymbolic as b$, calculateCashBreakdown as b0, calculateCashRounding as b1, calculateCdMaturity as b2, calculateChange as b3, calculateCompoundInterest as b4, calculateCreditUtilization as b5, calculateDebtToIncomeRatio as b6, calculateDepreciationSchedule as b7, calculateDiscount as b8, calculateEmi as b9, fitIntoBox as bA, formatNumber as bB, formatValue as bC, formatVwValue as bD, formatWithSeparator as bE, gcd as bF, ipFromBinary as bG, ipFromDecimal as bH, ipFromHex as bI, ipToBinary as bJ, ipToDecimal as bK, ipToDecimalCidr as bL, ipToHex as bM, ipToOctal as bN, isValid as bO, isValidCidr as bP, isValidIp as bQ, isValidIpv4 as bR, marginToMarkup as bS, markupToMargin as bT, octalToPermissions as bU, parseFileSize as bV, parseInput as bW, parseNumberString as bX, parseSemver as bY, permissionsToChmod as bZ, permissionsToOctal as b_, calculateExtraPaymentPayoff as ba, calculateFreelancerRate as bb, calculateGpa as bc, calculateLoan as bd, calculateMarginMarkup as be, calculateMovingAverages as bf, calculatePaybackPeriod as bg, calculatePercentageChange as bh, calculateRoi as bi, calculateRuleOf72 as bj, calculateSavingsGoal as bk, calculateSimpleInterest as bl, calculateTax as bm, calculateTimeValue as bn, calculateTipSplit as bo, calculateVideoBitrate as bp, compareSemver as bq, compareUnitPrices as br, convert as bs, convertAprApy as bt, convertBytes as bu, convertIp as bv, coverBox as bw, decimalToIp as bx, decimalToIpCidr as by, describePermissions as bz, type AspectRatioResult as c, planDebtPayoff as c0, ptToPx as c1, pxToAll as c2, pxToViewport as c3, remToPx as c4, satisfiesRange as c5, scaleByHeight as c6, scaleByWidth as c7, sortVersions as c8, splitSubnet as c9, symbolicToPermissions as ca, validateBarcode as cb, validateCardNumber as cc, validateIban as cd, validateIsbn as ce, viewportToPx as cf, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
1378
+ export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, calculateBlendedLoanRate as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type RuleOf72Result as aA, type SavingsGoalInput as aB, type SavingsGoalMode as aC, type SavingsGoalResult as aD, type SemverVersion as aE, type SimpleInterestResult as aF, type SubnetInfo as aG, type SuccessiveDiscountResult as aH, type SuccessiveDiscountStep as aI, type TaxDirection as aJ, type TaxResult as aK, type TimeValueDirection as aL, type TimeValueResult as aM, type TipSplitResult as aN, USD_DENOMINATIONS as aO, type UnitPriceItem as aP, type UnitPriceResult as aQ, type UtilizationTier as aR, type VideoBitrateInput as aS, type VideoBitrateMode as aT, type VideoBitrateResult as aU, type ViewportConvertResult as aV, applySuccessiveDiscounts as aW, autoFormat as aX, bumpVersion as aY, calcAspectRatio as aZ, calcSubnet as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type LoanBalanceInput as ag, type LoanBalanceResult as ah, type LoanRefinanceResult as ai, type LoanResult as aj, type MarginMarkupField as ak, type MarginMarkupInput as al, type MarginMarkupResult as am, type MovingAveragePoint as an, type MovingAverageResult as ao, type NotationStyle as ap, type NumberBase as aq, type PaybackPeriodInput as ar, type PaybackPeriodResult as as, type PercentChangeDirection as at, type PercentageChangeResult as au, type Permission as av, type PxConvertResult as aw, type RoiInput as ax, type RoiResult as ay, type RuleOf72Direction as az, type AprApyResult as b, permissionsToChmod as b$, calculateBreakEven as b0, calculateCashBreakdown as b1, calculateCashRounding as b2, calculateCdMaturity as b3, calculateChange as b4, calculateCompoundInterest as b5, calculateCreditUtilization as b6, calculateDebtToIncomeRatio as b7, calculateDepreciationSchedule as b8, calculateDiscount as b9, decimalToIpCidr as bA, describePermissions as bB, fitIntoBox as bC, formatNumber as bD, formatValue as bE, formatVwValue as bF, formatWithSeparator as bG, gcd as bH, ipFromBinary as bI, ipFromDecimal as bJ, ipFromHex as bK, ipToBinary as bL, ipToDecimal as bM, ipToDecimalCidr as bN, ipToHex as bO, ipToOctal as bP, isValid as bQ, isValidCidr as bR, isValidIp as bS, isValidIpv4 as bT, marginToMarkup as bU, markupToMargin as bV, octalToPermissions as bW, parseFileSize as bX, parseInput as bY, parseNumberString as bZ, parseSemver as b_, calculateEmi as ba, calculateExtraPaymentPayoff as bb, calculateFreelancerRate as bc, calculateGpa as bd, calculateLoan as be, calculateLoanRefinance as bf, calculateMarginMarkup as bg, calculateMovingAverages as bh, calculatePaybackPeriod as bi, calculatePercentageChange as bj, calculateRoi as bk, calculateRuleOf72 as bl, calculateSavingsGoal as bm, calculateSimpleInterest as bn, calculateTax as bo, calculateTimeValue as bp, calculateTipSplit as bq, calculateVideoBitrate as br, compareSemver as bs, compareUnitPrices as bt, convert as bu, convertAprApy as bv, convertBytes as bw, convertIp as bx, coverBox as by, decimalToIp as bz, type AspectRatioResult as c, permissionsToOctal as c0, permissionsToSymbolic as c1, planDebtPayoff as c2, ptToPx as c3, pxToAll as c4, pxToViewport as c5, remToPx as c6, satisfiesRange as c7, scaleByHeight as c8, scaleByWidth as c9, sortVersions as ca, splitSubnet as cb, symbolicToPermissions as cc, validateBarcode as cd, validateCardNumber as ce, validateIban as cf, validateIsbn as cg, viewportToPx as ch, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
@@ -1151,6 +1151,26 @@ interface DebtPayoffPlanResult {
1151
1151
  declare function planDebtPayoff(debts: DebtPayoffInput[], extraMonthlyPayment?: number): DebtPayoffPlanResult | {
1152
1152
  error: string;
1153
1153
  };
1154
+ interface LoanRefinanceResult {
1155
+ currentMonthlyPayment: number;
1156
+ newMonthlyPayment: number;
1157
+ monthlySavings: number;
1158
+ closingCosts: number;
1159
+ breakEvenMonths: number | null;
1160
+ currentTotalInterest: number;
1161
+ newTotalInterest: number;
1162
+ totalInterestSavings: number;
1163
+ }
1164
+ /**
1165
+ * Compare a current loan's remaining payments against a new refinanced loan
1166
+ * on the same outstanding balance, and compute the monthly savings and the
1167
+ * break-even month where cumulative monthly savings recoup the closing
1168
+ * costs. Reuses calculateLoan for both the current loan's remaining
1169
+ * amortization and the new loan's amortization.
1170
+ */
1171
+ declare function calculateLoanRefinance(currentBalance: number, currentRatePercent: number, currentRemainingMonths: number, newRatePercent: number, newTermMonths: number, closingCosts: number): LoanRefinanceResult | {
1172
+ error: string;
1173
+ };
1154
1174
 
1155
1175
  type units_AmortizationRow = AmortizationRow;
1156
1176
  type units_AprApyDirection = AprApyDirection;
@@ -1223,6 +1243,7 @@ type units_IsbnFormat = IsbnFormat;
1223
1243
  type units_IsbnResult = IsbnResult;
1224
1244
  type units_LoanBalanceInput = LoanBalanceInput;
1225
1245
  type units_LoanBalanceResult = LoanBalanceResult;
1246
+ type units_LoanRefinanceResult = LoanRefinanceResult;
1226
1247
  type units_LoanResult = LoanResult;
1227
1248
  type units_MarginMarkupField = MarginMarkupField;
1228
1249
  type units_MarginMarkupInput = MarginMarkupInput;
@@ -1283,6 +1304,7 @@ declare const units_calculateExtraPaymentPayoff: typeof calculateExtraPaymentPay
1283
1304
  declare const units_calculateFreelancerRate: typeof calculateFreelancerRate;
1284
1305
  declare const units_calculateGpa: typeof calculateGpa;
1285
1306
  declare const units_calculateLoan: typeof calculateLoan;
1307
+ declare const units_calculateLoanRefinance: typeof calculateLoanRefinance;
1286
1308
  declare const units_calculateMarginMarkup: typeof calculateMarginMarkup;
1287
1309
  declare const units_calculateMovingAverages: typeof calculateMovingAverages;
1288
1310
  declare const units_calculatePaybackPeriod: typeof calculatePaybackPeriod;
@@ -1350,7 +1372,7 @@ declare const units_validateIban: typeof validateIban;
1350
1372
  declare const units_validateIsbn: typeof validateIsbn;
1351
1373
  declare const units_viewportToPx: typeof viewportToPx;
1352
1374
  declare namespace units {
1353
- export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1375
+ export { type units_AmortizationRow as AmortizationRow, type units_AprApyDirection as AprApyDirection, type units_AprApyResult as AprApyResult, type units_AspectRatioResult as AspectRatioResult, units_BASE_LABELS as BASE_LABELS, units_BASE_PREFIXES as BASE_PREFIXES, units_BYTE_UNITS as BYTE_UNITS, type units_BarcodeFormat as BarcodeFormat, type units_BarcodeValidationResult as BarcodeValidationResult, type units_BaseConvertResult as BaseConvertResult, type units_BlendedLoanRateResult as BlendedLoanRateResult, type units_BreakEvenInput as BreakEvenInput, type units_BreakEvenResult as BreakEvenResult, type units_ByteConvertResult as ByteConvertResult, type units_ByteUnit as ByteUnit, units_COMMON_CURRENCIES as COMMON_CURRENCIES, units_COMMON_LOCALES as COMMON_LOCALES, units_COMMON_PERMISSIONS as COMMON_PERMISSIONS, units_COMMON_RATIOS as COMMON_RATIOS, units_COMMON_SIZES as COMMON_SIZES, units_COMMON_TAX_RATES as COMMON_TAX_RATES, units_COMMON_TIP_PERCENTAGES as COMMON_TIP_PERCENTAGES, units_COMMON_VIEWPORTS as COMMON_VIEWPORTS, type units_CardValidationResult as CardValidationResult, type units_CashBreakdownResult as CashBreakdownResult, type units_CashChangeResult as CashChangeResult, type units_CashDenominationItem as CashDenominationItem, type units_CashRoundingMode as CashRoundingMode, type units_CashRoundingResult as CashRoundingResult, type units_CdMaturityResult as CdMaturityResult, type units_CompareUnitPricesResult as CompareUnitPricesResult, type units_CompoundInterestResult as CompoundInterestResult, type units_CompoundYearRow as CompoundYearRow, type units_CreditAccountInput as CreditAccountInput, type units_CreditAccountResult as CreditAccountResult, type units_CreditUtilizationResult as CreditUtilizationResult, type units_DebtItemInput as DebtItemInput, type units_DebtItemResult as DebtItemResult, type units_DebtPayoffComparison as DebtPayoffComparison, type units_DebtPayoffInput as DebtPayoffInput, type units_DebtPayoffPlanResult as DebtPayoffPlanResult, type units_DebtPayoffScheduleEntry as DebtPayoffScheduleEntry, type units_DebtPayoffStrategy as DebtPayoffStrategy, type units_DebtPayoffStrategyResult as DebtPayoffStrategyResult, type units_DebtToIncomeRatioResult as DebtToIncomeRatioResult, type units_DepreciationMethod as DepreciationMethod, type units_DepreciationResult as DepreciationResult, type units_DepreciationYear as DepreciationYear, type units_Dimensions as Dimensions, type units_DiscountField as DiscountField, type units_DiscountInput as DiscountInput, type units_DiscountResult as DiscountResult, type units_DtiTier as DtiTier, type units_EmiResult as EmiResult, type units_EmiTenureUnit as EmiTenureUnit, type units_EmiYearlyBreakdownRow as EmiYearlyBreakdownRow, type units_ExtraPaymentPayoffResult as ExtraPaymentPayoffResult, type units_FilePermissions as FilePermissions, type units_FormatOptions as FormatOptions, type units_FreelancerRateInput as FreelancerRateInput, type units_FreelancerRateResult as FreelancerRateResult, units_GPA_GRADE_POINTS as GPA_GRADE_POINTS, type units_GpaCourse as GpaCourse, type units_GpaCourseResult as GpaCourseResult, type units_GpaResult as GpaResult, type units_IbanValidationResult as IbanValidationResult, type units_IpConversion as IpConversion, type units_IsbnFormat as IsbnFormat, type units_IsbnResult as IsbnResult, type units_LoanBalanceInput as LoanBalanceInput, type units_LoanBalanceResult as LoanBalanceResult, type units_LoanRefinanceResult as LoanRefinanceResult, type units_LoanResult as LoanResult, type units_MarginMarkupField as MarginMarkupField, type units_MarginMarkupInput as MarginMarkupInput, type units_MarginMarkupResult as MarginMarkupResult, type units_MovingAveragePoint as MovingAveragePoint, type units_MovingAverageResult as MovingAverageResult, type units_NotationStyle as NotationStyle, type units_NumberBase as NumberBase, type units_PaybackPeriodInput as PaybackPeriodInput, type units_PaybackPeriodResult as PaybackPeriodResult, type units_PercentChangeDirection as PercentChangeDirection, type units_PercentageChangeResult as PercentageChangeResult, type units_Permission as Permission, type units_PxConvertResult as PxConvertResult, type units_RoiInput as RoiInput, type units_RoiResult as RoiResult, type units_RuleOf72Direction as RuleOf72Direction, type units_RuleOf72Result as RuleOf72Result, type units_SavingsGoalInput as SavingsGoalInput, type units_SavingsGoalMode as SavingsGoalMode, type units_SavingsGoalResult as SavingsGoalResult, type units_SemverVersion as SemverVersion, type units_SimpleInterestResult as SimpleInterestResult, type units_SubnetInfo as SubnetInfo, type units_SuccessiveDiscountResult as SuccessiveDiscountResult, type units_SuccessiveDiscountStep as SuccessiveDiscountStep, type units_TaxDirection as TaxDirection, type units_TaxResult as TaxResult, type units_TimeValueDirection as TimeValueDirection, type units_TimeValueResult as TimeValueResult, type units_TipSplitResult as TipSplitResult, units_USD_DENOMINATIONS as USD_DENOMINATIONS, type units_UnitPriceItem as UnitPriceItem, type units_UnitPriceResult as UnitPriceResult, type units_UtilizationTier as UtilizationTier, type units_VideoBitrateInput as VideoBitrateInput, type units_VideoBitrateMode as VideoBitrateMode, type units_VideoBitrateResult as VideoBitrateResult, type units_ViewportConvertResult as ViewportConvertResult, units_applySuccessiveDiscounts as applySuccessiveDiscounts, units_autoFormat as autoFormat, units_bumpVersion as bumpVersion, units_calcAspectRatio as calcAspectRatio, units_calcSubnet as calcSubnet, units_calculateBlendedLoanRate as calculateBlendedLoanRate, units_calculateBreakEven as calculateBreakEven, units_calculateCashBreakdown as calculateCashBreakdown, units_calculateCashRounding as calculateCashRounding, units_calculateCdMaturity as calculateCdMaturity, units_calculateChange as calculateChange, units_calculateCompoundInterest as calculateCompoundInterest, units_calculateCreditUtilization as calculateCreditUtilization, units_calculateDebtToIncomeRatio as calculateDebtToIncomeRatio, units_calculateDepreciationSchedule as calculateDepreciationSchedule, units_calculateDiscount as calculateDiscount, units_calculateEmi as calculateEmi, units_calculateExtraPaymentPayoff as calculateExtraPaymentPayoff, units_calculateFreelancerRate as calculateFreelancerRate, units_calculateGpa as calculateGpa, units_calculateLoan as calculateLoan, units_calculateLoanRefinance as calculateLoanRefinance, units_calculateMarginMarkup as calculateMarginMarkup, units_calculateMovingAverages as calculateMovingAverages, units_calculatePaybackPeriod as calculatePaybackPeriod, units_calculatePercentageChange as calculatePercentageChange, units_calculateRoi as calculateRoi, units_calculateRuleOf72 as calculateRuleOf72, units_calculateSavingsGoal as calculateSavingsGoal, units_calculateSimpleInterest as calculateSimpleInterest, units_calculateTax as calculateTax, units_calculateTimeValue as calculateTimeValue, units_calculateTipSplit as calculateTipSplit, units_calculateVideoBitrate as calculateVideoBitrate, units_compareSemver as compareSemver, units_compareUnitPrices as compareUnitPrices, units_convert as convert, units_convertAprApy as convertAprApy, units_convertBytes as convertBytes, units_convertIp as convertIp, units_coverBox as coverBox, units_decimalToIp as decimalToIp, units_decimalToIpCidr as decimalToIpCidr, units_describePermissions as describePermissions, units_fitIntoBox as fitIntoBox, units_formatNumber as formatNumber, units_formatValue as formatValue, units_formatVwValue as formatVwValue, units_formatWithSeparator as formatWithSeparator, units_gcd as gcd, units_ipFromBinary as ipFromBinary, units_ipFromDecimal as ipFromDecimal, units_ipFromHex as ipFromHex, units_ipToBinary as ipToBinary, units_ipToDecimal as ipToDecimal, units_ipToDecimalCidr as ipToDecimalCidr, units_ipToHex as ipToHex, units_ipToOctal as ipToOctal, units_isValid as isValid, units_isValidCidr as isValidCidr, units_isValidIp as isValidIp, units_isValidIpv4 as isValidIpv4, units_marginToMarkup as marginToMarkup, units_markupToMargin as markupToMargin, units_octalToPermissions as octalToPermissions, units_parseFileSize as parseFileSize, units_parseInput as parseInput, units_parseNumberString as parseNumberString, units_parseSemver as parseSemver, units_permissionsToChmod as permissionsToChmod, units_permissionsToOctal as permissionsToOctal, units_permissionsToSymbolic as permissionsToSymbolic, units_planDebtPayoff as planDebtPayoff, units_ptToPx as ptToPx, units_pxToAll as pxToAll, units_pxToViewport as pxToViewport, units_remToPx as remToPx, units_satisfiesRange as satisfiesRange, units_scaleByHeight as scaleByHeight, units_scaleByWidth as scaleByWidth, units_sortVersions as sortVersions, units_splitSubnet as splitSubnet, units_symbolicToPermissions as symbolicToPermissions, units_validateBarcode as validateBarcode, units_validateCardNumber as validateCardNumber, units_validateIban as validateIban, units_validateIsbn as validateIsbn, units_viewportToPx as viewportToPx };
1354
1376
  }
1355
1377
 
1356
- export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, calculateBreakEven as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type SavingsGoalInput as aA, type SavingsGoalMode as aB, type SavingsGoalResult as aC, type SemverVersion as aD, type SimpleInterestResult as aE, type SubnetInfo as aF, type SuccessiveDiscountResult as aG, type SuccessiveDiscountStep as aH, type TaxDirection as aI, type TaxResult as aJ, type TimeValueDirection as aK, type TimeValueResult as aL, type TipSplitResult as aM, USD_DENOMINATIONS as aN, type UnitPriceItem as aO, type UnitPriceResult as aP, type UtilizationTier as aQ, type VideoBitrateInput as aR, type VideoBitrateMode as aS, type VideoBitrateResult as aT, type ViewportConvertResult as aU, applySuccessiveDiscounts as aV, autoFormat as aW, bumpVersion as aX, calcAspectRatio as aY, calcSubnet as aZ, calculateBlendedLoanRate as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type LoanBalanceInput as ag, type LoanBalanceResult as ah, type LoanResult as ai, type MarginMarkupField as aj, type MarginMarkupInput as ak, type MarginMarkupResult as al, type MovingAveragePoint as am, type MovingAverageResult as an, type NotationStyle as ao, type NumberBase as ap, type PaybackPeriodInput as aq, type PaybackPeriodResult as ar, type PercentChangeDirection as as, type PercentageChangeResult as at, type Permission as au, type PxConvertResult as av, type RoiInput as aw, type RoiResult as ax, type RuleOf72Direction as ay, type RuleOf72Result as az, type AprApyResult as b, permissionsToSymbolic as b$, calculateCashBreakdown as b0, calculateCashRounding as b1, calculateCdMaturity as b2, calculateChange as b3, calculateCompoundInterest as b4, calculateCreditUtilization as b5, calculateDebtToIncomeRatio as b6, calculateDepreciationSchedule as b7, calculateDiscount as b8, calculateEmi as b9, fitIntoBox as bA, formatNumber as bB, formatValue as bC, formatVwValue as bD, formatWithSeparator as bE, gcd as bF, ipFromBinary as bG, ipFromDecimal as bH, ipFromHex as bI, ipToBinary as bJ, ipToDecimal as bK, ipToDecimalCidr as bL, ipToHex as bM, ipToOctal as bN, isValid as bO, isValidCidr as bP, isValidIp as bQ, isValidIpv4 as bR, marginToMarkup as bS, markupToMargin as bT, octalToPermissions as bU, parseFileSize as bV, parseInput as bW, parseNumberString as bX, parseSemver as bY, permissionsToChmod as bZ, permissionsToOctal as b_, calculateExtraPaymentPayoff as ba, calculateFreelancerRate as bb, calculateGpa as bc, calculateLoan as bd, calculateMarginMarkup as be, calculateMovingAverages as bf, calculatePaybackPeriod as bg, calculatePercentageChange as bh, calculateRoi as bi, calculateRuleOf72 as bj, calculateSavingsGoal as bk, calculateSimpleInterest as bl, calculateTax as bm, calculateTimeValue as bn, calculateTipSplit as bo, calculateVideoBitrate as bp, compareSemver as bq, compareUnitPrices as br, convert as bs, convertAprApy as bt, convertBytes as bu, convertIp as bv, coverBox as bw, decimalToIp as bx, decimalToIpCidr as by, describePermissions as bz, type AspectRatioResult as c, planDebtPayoff as c0, ptToPx as c1, pxToAll as c2, pxToViewport as c3, remToPx as c4, satisfiesRange as c5, scaleByHeight as c6, scaleByWidth as c7, sortVersions as c8, splitSubnet as c9, symbolicToPermissions as ca, validateBarcode as cb, validateCardNumber as cc, validateIban as cd, validateIsbn as ce, viewportToPx as cf, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
1378
+ export { type DtiTier as $, type AmortizationRow as A, BASE_LABELS as B, COMMON_CURRENCIES as C, type CashRoundingResult as D, type CdMaturityResult as E, type CompareUnitPricesResult as F, type CompoundInterestResult as G, type CompoundYearRow as H, type CreditAccountInput as I, type CreditAccountResult as J, type CreditUtilizationResult as K, type DebtItemInput as L, type DebtItemResult as M, type DebtPayoffComparison as N, type DebtPayoffInput as O, type DebtPayoffPlanResult as P, type DebtPayoffScheduleEntry as Q, type DebtPayoffStrategy as R, type DebtPayoffStrategyResult as S, type DebtToIncomeRatioResult as T, type DepreciationMethod as U, type DepreciationResult as V, type DepreciationYear as W, type Dimensions as X, type DiscountField as Y, type DiscountInput as Z, type DiscountResult as _, type AprApyDirection as a, calculateBlendedLoanRate as a$, type EmiResult as a0, type EmiTenureUnit as a1, type EmiYearlyBreakdownRow as a2, type ExtraPaymentPayoffResult as a3, type FilePermissions as a4, type FormatOptions as a5, type FreelancerRateInput as a6, type FreelancerRateResult as a7, GPA_GRADE_POINTS as a8, type GpaCourse as a9, type RuleOf72Result as aA, type SavingsGoalInput as aB, type SavingsGoalMode as aC, type SavingsGoalResult as aD, type SemverVersion as aE, type SimpleInterestResult as aF, type SubnetInfo as aG, type SuccessiveDiscountResult as aH, type SuccessiveDiscountStep as aI, type TaxDirection as aJ, type TaxResult as aK, type TimeValueDirection as aL, type TimeValueResult as aM, type TipSplitResult as aN, USD_DENOMINATIONS as aO, type UnitPriceItem as aP, type UnitPriceResult as aQ, type UtilizationTier as aR, type VideoBitrateInput as aS, type VideoBitrateMode as aT, type VideoBitrateResult as aU, type ViewportConvertResult as aV, applySuccessiveDiscounts as aW, autoFormat as aX, bumpVersion as aY, calcAspectRatio as aZ, calcSubnet as a_, type GpaCourseResult as aa, type GpaResult as ab, type IbanValidationResult as ac, type IpConversion as ad, type IsbnFormat as ae, type IsbnResult as af, type LoanBalanceInput as ag, type LoanBalanceResult as ah, type LoanRefinanceResult as ai, type LoanResult as aj, type MarginMarkupField as ak, type MarginMarkupInput as al, type MarginMarkupResult as am, type MovingAveragePoint as an, type MovingAverageResult as ao, type NotationStyle as ap, type NumberBase as aq, type PaybackPeriodInput as ar, type PaybackPeriodResult as as, type PercentChangeDirection as at, type PercentageChangeResult as au, type Permission as av, type PxConvertResult as aw, type RoiInput as ax, type RoiResult as ay, type RuleOf72Direction as az, type AprApyResult as b, permissionsToChmod as b$, calculateBreakEven as b0, calculateCashBreakdown as b1, calculateCashRounding as b2, calculateCdMaturity as b3, calculateChange as b4, calculateCompoundInterest as b5, calculateCreditUtilization as b6, calculateDebtToIncomeRatio as b7, calculateDepreciationSchedule as b8, calculateDiscount as b9, decimalToIpCidr as bA, describePermissions as bB, fitIntoBox as bC, formatNumber as bD, formatValue as bE, formatVwValue as bF, formatWithSeparator as bG, gcd as bH, ipFromBinary as bI, ipFromDecimal as bJ, ipFromHex as bK, ipToBinary as bL, ipToDecimal as bM, ipToDecimalCidr as bN, ipToHex as bO, ipToOctal as bP, isValid as bQ, isValidCidr as bR, isValidIp as bS, isValidIpv4 as bT, marginToMarkup as bU, markupToMargin as bV, octalToPermissions as bW, parseFileSize as bX, parseInput as bY, parseNumberString as bZ, parseSemver as b_, calculateEmi as ba, calculateExtraPaymentPayoff as bb, calculateFreelancerRate as bc, calculateGpa as bd, calculateLoan as be, calculateLoanRefinance as bf, calculateMarginMarkup as bg, calculateMovingAverages as bh, calculatePaybackPeriod as bi, calculatePercentageChange as bj, calculateRoi as bk, calculateRuleOf72 as bl, calculateSavingsGoal as bm, calculateSimpleInterest as bn, calculateTax as bo, calculateTimeValue as bp, calculateTipSplit as bq, calculateVideoBitrate as br, compareSemver as bs, compareUnitPrices as bt, convert as bu, convertAprApy as bv, convertBytes as bw, convertIp as bx, coverBox as by, decimalToIp as bz, type AspectRatioResult as c, permissionsToOctal as c0, permissionsToSymbolic as c1, planDebtPayoff as c2, ptToPx as c3, pxToAll as c4, pxToViewport as c5, remToPx as c6, satisfiesRange as c7, scaleByHeight as c8, scaleByWidth as c9, sortVersions as ca, splitSubnet as cb, symbolicToPermissions as cc, validateBarcode as cd, validateCardNumber as ce, validateIban as cf, validateIsbn as cg, viewportToPx as ch, BASE_PREFIXES as d, BYTE_UNITS as e, type BarcodeFormat as f, type BarcodeValidationResult as g, type BaseConvertResult as h, type BlendedLoanRateResult as i, type BreakEvenInput as j, type BreakEvenResult as k, type ByteConvertResult as l, type ByteUnit as m, COMMON_LOCALES as n, COMMON_PERMISSIONS as o, COMMON_RATIOS as p, COMMON_SIZES as q, COMMON_TAX_RATES as r, COMMON_TIP_PERCENTAGES as s, COMMON_VIEWPORTS as t, units as u, type CardValidationResult as v, type CashBreakdownResult as w, type CashChangeResult as x, type CashDenominationItem as y, type CashRoundingMode as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilix-tech/sdk",
3
- "version": "0.63.0",
3
+ "version": "0.64.0",
4
4
  "description": "154+ developer utility tools for Node.js: JSON, encoding, hashing, color, CSS, network and more. Runs locally, no API key required.",
5
5
  "author": "Utilix <hello@utilix.tech>",
6
6
  "license": "MIT",