@atlantjs/arch 15.6.6 → 15.6.7

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.
Files changed (221) hide show
  1. package/package.json +3 -2
  2. package/src/@tool-box/tests/builder.abstract.util.d.ts +1 -0
  3. package/src/@tool-box/tests/builder.abstract.util.d.ts.map +1 -0
  4. package/src/@tool-box/tests/builders/datetime/datetime.edge.builder.d.ts +1 -0
  5. package/src/@tool-box/tests/builders/datetime/datetime.edge.builder.d.ts.map +1 -0
  6. package/src/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts +1 -0
  7. package/src/@tool-box/tests/builders/failures/dummies/failure.dummy.d.ts.map +1 -0
  8. package/src/@tool-box/tests/builders/failures/failure.builder.d.ts +1 -0
  9. package/src/@tool-box/tests/builders/failures/failure.builder.d.ts.map +1 -0
  10. package/src/@tool-box/tests/builders/metadata/metadata-uv.builder.d.ts +1 -0
  11. package/src/@tool-box/tests/builders/metadata/metadata-uv.builder.d.ts.map +1 -0
  12. package/src/@tool-box/tests/builders/metadata/metadata.edge.builder.d.ts +1 -0
  13. package/src/@tool-box/tests/builders/metadata/metadata.edge.builder.d.ts.map +1 -0
  14. package/src/@tool-box/tests/builders/user/email.edge.builder.d.ts +1 -0
  15. package/src/@tool-box/tests/builders/user/email.edge.builder.d.ts.map +1 -0
  16. package/src/@tool-box/tests/builders/user/username.edge.builder.d.ts +1 -0
  17. package/src/@tool-box/tests/builders/user/username.edge.builder.d.ts.map +1 -0
  18. package/src/@tool-box/tests/faker/faker.d.ts +1 -0
  19. package/src/@tool-box/tests/faker/faker.d.ts.map +1 -0
  20. package/src/@tool-box/utils/convert-units/convert-units.d.ts +1 -0
  21. package/src/@tool-box/utils/convert-units/convert-units.d.ts.map +1 -0
  22. package/src/@tool-box/utils/datatypes/boolean-utils.d.ts +1 -0
  23. package/src/@tool-box/utils/datatypes/boolean-utils.d.ts.map +1 -0
  24. package/src/@tool-box/utils/datatypes/generic-types.d.ts +1 -0
  25. package/src/@tool-box/utils/datatypes/generic-types.d.ts.map +1 -0
  26. package/src/@tool-box/utils/datatypes/plainify.d.ts +1 -0
  27. package/src/@tool-box/utils/datatypes/plainify.d.ts.map +1 -0
  28. package/src/@tool-box/utils/datatypes/string-utils.d.ts +1 -0
  29. package/src/@tool-box/utils/datatypes/string-utils.d.ts.map +1 -0
  30. package/src/@tool-box/utils/datetime/mappers/month.mapper.d.ts +1 -0
  31. package/src/@tool-box/utils/datetime/mappers/month.mapper.d.ts.map +1 -0
  32. package/src/@tool-box/utils/datetime/mappers/points/month-abbreviation.enum.d.ts +1 -0
  33. package/src/@tool-box/utils/datetime/mappers/points/month-abbreviation.enum.d.ts.map +1 -0
  34. package/src/@tool-box/utils/datetime/mappers/points/month-number.enum.d.ts +1 -0
  35. package/src/@tool-box/utils/datetime/mappers/points/month-number.enum.d.ts.map +1 -0
  36. package/src/@tool-box/utils/ducts/common.d.ts +1 -0
  37. package/src/@tool-box/utils/ducts/common.d.ts.map +1 -0
  38. package/src/@tool-box/utils/ducts/optional-type.d.ts +1 -0
  39. package/src/@tool-box/utils/ducts/optional-type.d.ts.map +1 -0
  40. package/src/@tool-box/utils/ducts/return-type.d.ts +1 -0
  41. package/src/@tool-box/utils/ducts/return-type.d.ts.map +1 -0
  42. package/src/@tool-box/utils/http-provider/http-provider-failure-response.d.ts +1 -0
  43. package/src/@tool-box/utils/http-provider/http-provider-failure-response.d.ts.map +1 -0
  44. package/src/@tool-box/utils/http-provider/http-provider-success-response.d.ts +1 -0
  45. package/src/@tool-box/utils/http-provider/http-provider-success-response.d.ts.map +1 -0
  46. package/src/@tool-box/utils/http-provider/http-provider.d.ts +1 -0
  47. package/src/@tool-box/utils/http-provider/http-provider.d.ts.map +1 -0
  48. package/src/@tool-box/utils/logger/index.d.ts +1 -0
  49. package/src/@tool-box/utils/logger/index.d.ts.map +1 -0
  50. package/src/@tool-box/utils/map/map.abstract.d.ts +1 -0
  51. package/src/@tool-box/utils/map/map.abstract.d.ts.map +1 -0
  52. package/src/@tool-box/utils/random/random.d.ts +1 -0
  53. package/src/@tool-box/utils/random/random.d.ts.map +1 -0
  54. package/src/@tool-box/utils/type-guard/guardian-exception.d.ts +1 -0
  55. package/src/@tool-box/utils/type-guard/guardian-exception.d.ts.map +1 -0
  56. package/src/@tool-box/utils/type-guard/guardian.d.ts +1 -0
  57. package/src/@tool-box/utils/type-guard/guardian.d.ts.map +1 -0
  58. package/src/@tool-box/utils/type-guard/guardian.type.d.ts +1 -0
  59. package/src/@tool-box/utils/type-guard/guardian.type.d.ts.map +1 -0
  60. package/src/@tool-box/utils/validators/is-cron-expression.d.ts +1 -0
  61. package/src/@tool-box/utils/validators/is-cron-expression.d.ts.map +1 -0
  62. package/src/@tool-box/utils/validators/is-date-string.d.ts +1 -0
  63. package/src/@tool-box/utils/validators/is-date-string.d.ts.map +1 -0
  64. package/src/@tool-box/utils/validators/is-password-match.d.ts +1 -0
  65. package/src/@tool-box/utils/validators/is-password-match.d.ts.map +1 -0
  66. package/src/@tool-box/utils/validators/is-password-policy.validator.d.ts +1 -0
  67. package/src/@tool-box/utils/validators/is-password-policy.validator.d.ts.map +1 -0
  68. package/src/@tool-box/utils/validators/is-schedule.d.ts +1 -0
  69. package/src/@tool-box/utils/validators/is-schedule.d.ts.map +1 -0
  70. package/src/@tool-box/utils/validators/is-time-string.d.ts +1 -0
  71. package/src/@tool-box/utils/validators/is-time-string.d.ts.map +1 -0
  72. package/src/@tool-box/utils/validators/is-ulid.d.ts +1 -0
  73. package/src/@tool-box/utils/validators/is-ulid.d.ts.map +1 -0
  74. package/src/index.d.ts +1 -0
  75. package/src/index.d.ts.map +1 -0
  76. package/src/objects/@common/edges/email.edge.d.ts +1 -0
  77. package/src/objects/@common/edges/email.edge.d.ts.map +1 -0
  78. package/src/objects/@common/edges/email.edge.js +0 -1
  79. package/src/objects/@common/edges/ulid.sketch.edge.d.ts +1 -0
  80. package/src/objects/@common/edges/ulid.sketch.edge.d.ts.map +1 -0
  81. package/src/objects/@common/edges/url.edge.d.ts +1 -0
  82. package/src/objects/@common/edges/url.edge.d.ts.map +1 -0
  83. package/src/objects/@common/edges/username.edge.d.ts +1 -0
  84. package/src/objects/@common/edges/username.edge.d.ts.map +1 -0
  85. package/src/objects/@common/edges/uuid.sketch.edge.d.ts +1 -0
  86. package/src/objects/@common/edges/uuid.sketch.edge.d.ts.map +1 -0
  87. package/src/objects/@common/points/environment.point.d.ts +1 -0
  88. package/src/objects/@common/points/environment.point.d.ts.map +1 -0
  89. package/src/objects/@common/points/header-token-name.point.d.ts +1 -0
  90. package/src/objects/@common/points/header-token-name.point.d.ts.map +1 -0
  91. package/src/objects/@common/points/http-status-codes.point.d.ts +1 -0
  92. package/src/objects/@common/points/http-status-codes.point.d.ts.map +1 -0
  93. package/src/objects/amount/amount-value.edge.d.ts +1 -0
  94. package/src/objects/amount/amount-value.edge.d.ts.map +1 -0
  95. package/src/objects/amount/amount.edge.d.ts +142 -132
  96. package/src/objects/amount/amount.edge.d.ts.map +1 -0
  97. package/src/objects/amount/amount.edge.js +168 -141
  98. package/src/objects/amount/amount.polygon.d.ts +1 -0
  99. package/src/objects/amount/amount.polygon.d.ts.map +1 -0
  100. package/src/objects/amount/amount.uv.d.ts +2 -1
  101. package/src/objects/amount/amount.uv.d.ts.map +1 -0
  102. package/src/objects/amount/amount.uv.js +1 -1
  103. package/src/objects/amount/points/duration-unit.point.d.ts +1 -0
  104. package/src/objects/amount/points/duration-unit.point.d.ts.map +1 -0
  105. package/src/objects/amount/points/energy-unit.point.d.ts +1 -0
  106. package/src/objects/amount/points/energy-unit.point.d.ts.map +1 -0
  107. package/src/objects/amount/points/length-unit.point.d.ts +1 -0
  108. package/src/objects/amount/points/length-unit.point.d.ts.map +1 -0
  109. package/src/objects/amount/points/mass-unit.point.d.ts +1 -0
  110. package/src/objects/amount/points/mass-unit.point.d.ts.map +1 -0
  111. package/src/objects/amount/points/month-name.point.d.ts +1 -0
  112. package/src/objects/amount/points/month-name.point.d.ts.map +1 -0
  113. package/src/objects/amount/points/object-unit.point.d.ts +1 -0
  114. package/src/objects/amount/points/object-unit.point.d.ts.map +1 -0
  115. package/src/objects/amount/points/units.point.d.ts +1 -0
  116. package/src/objects/amount/points/units.point.d.ts.map +1 -0
  117. package/src/objects/amount/points/volume-unit.point.d.ts +1 -0
  118. package/src/objects/amount/points/volume-unit.point.d.ts.map +1 -0
  119. package/src/objects/amount/points/week-day.point.d.ts +1 -0
  120. package/src/objects/amount/points/week-day.point.d.ts.map +1 -0
  121. package/src/objects/datetime/edges/datetime.edge.d.ts +174 -162
  122. package/src/objects/datetime/edges/datetime.edge.d.ts.map +1 -0
  123. package/src/objects/datetime/edges/datetime.edge.js +207 -218
  124. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.d.ts +5 -0
  125. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.d.ts.map +1 -0
  126. package/src/objects/datetime/edges/locale/day/day-name-to-english.mapper.js +19 -0
  127. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.d.ts +5 -0
  128. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.d.ts.map +1 -0
  129. package/src/objects/datetime/edges/locale/day/day-name-to-portuguese.mapper.js +19 -0
  130. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.d.ts +6 -0
  131. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.d.ts.map +1 -0
  132. package/src/objects/datetime/edges/locale/day/today-to-language.mapper.js +15 -0
  133. package/src/objects/datetime/edges/locale/holidays-country.type.d.ts +3 -0
  134. package/src/objects/datetime/edges/locale/holidays-country.type.d.ts.map +1 -0
  135. package/src/objects/datetime/edges/locale/holidays-country.type.js +2 -0
  136. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.d.ts +5 -0
  137. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.d.ts.map +1 -0
  138. package/src/objects/datetime/edges/locale/month/month-to-english.mapper.js +24 -0
  139. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.d.ts +5 -0
  140. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.d.ts.map +1 -0
  141. package/src/objects/datetime/edges/locale/month/month-to-portuguese.mapper.js +24 -0
  142. package/src/objects/datetime/points/month-name.enum.d.ts +1 -0
  143. package/src/objects/datetime/points/month-name.enum.d.ts.map +1 -0
  144. package/src/objects/datetime/points/week-day.enum.d.ts +1 -0
  145. package/src/objects/datetime/points/week-day.enum.d.ts.map +1 -0
  146. package/src/objects/failure/edges/failure.abstract.d.ts +1 -0
  147. package/src/objects/failure/edges/failure.abstract.d.ts.map +1 -0
  148. package/src/objects/failure/edges/failure.abstract.polygon.d.ts +1 -0
  149. package/src/objects/failure/edges/failure.abstract.polygon.d.ts.map +1 -0
  150. package/src/objects/language/points/language.point.d.ts +1 -0
  151. package/src/objects/language/points/language.point.d.ts.map +1 -0
  152. package/src/objects/metadata/metadata.edge.d.ts +1 -0
  153. package/src/objects/metadata/metadata.edge.d.ts.map +1 -0
  154. package/src/objects/metadata/metadata.polygon.d.ts +1 -0
  155. package/src/objects/metadata/metadata.polygon.d.ts.map +1 -0
  156. package/src/objects/metadata/metadata.uv.d.ts +1 -0
  157. package/src/objects/metadata/metadata.uv.d.ts.map +1 -0
  158. package/src/objects/password/password.edge.d.ts +1 -0
  159. package/src/objects/password/password.edge.d.ts.map +1 -0
  160. package/src/objects/password/password.polygon.d.ts +1 -0
  161. package/src/objects/password/password.polygon.d.ts.map +1 -0
  162. package/src/objects/password/steps/not-allowing-consecutive-chars-step.d.ts +1 -0
  163. package/src/objects/password/steps/not-allowing-consecutive-chars-step.d.ts.map +1 -0
  164. package/src/objects/password/steps/not-allowing-date-step.d.ts +1 -0
  165. package/src/objects/password/steps/not-allowing-date-step.d.ts.map +1 -0
  166. package/src/objects/password/steps/not-allowing-phone-step.d.ts +1 -0
  167. package/src/objects/password/steps/not-allowing-phone-step.d.ts.map +1 -0
  168. package/src/objects/password/steps/not-allowing-repeated-chars-step.d.ts +1 -0
  169. package/src/objects/password/steps/not-allowing-repeated-chars-step.d.ts.map +1 -0
  170. package/src/objects/password/steps/not-allowing-string-step.d.ts +1 -0
  171. package/src/objects/password/steps/not-allowing-string-step.d.ts.map +1 -0
  172. package/src/objects/password/steps/not-allowing-these-chars-step.d.ts +1 -0
  173. package/src/objects/password/steps/not-allowing-these-chars-step.d.ts.map +1 -0
  174. package/src/objects/password/steps/numeric-step.d.ts +1 -0
  175. package/src/objects/password/steps/numeric-step.d.ts.map +1 -0
  176. package/src/objects/password/steps/with-at-least-one-letter-step.d.ts +1 -0
  177. package/src/objects/password/steps/with-at-least-one-letter-step.d.ts.map +1 -0
  178. package/src/objects/password/steps/with-at-least-one-number-digit-step.d.ts +1 -0
  179. package/src/objects/password/steps/with-at-least-one-number-digit-step.d.ts.map +1 -0
  180. package/src/objects/password/steps/with-at-least-one-special-char-step.d.ts +1 -0
  181. package/src/objects/password/steps/with-at-least-one-special-char-step.d.ts.map +1 -0
  182. package/src/objects/password/steps/with-length-step.d.ts +1 -0
  183. package/src/objects/password/steps/with-length-step.d.ts.map +1 -0
  184. package/src/objects/password/validation-step.d.ts +1 -0
  185. package/src/objects/password/validation-step.d.ts.map +1 -0
  186. package/src/objects/password/validation-step.type.d.ts +1 -0
  187. package/src/objects/password/validation-step.type.d.ts.map +1 -0
  188. package/src/objects/primitives/boolean.edge.sketch.d.ts +1 -0
  189. package/src/objects/primitives/boolean.edge.sketch.d.ts.map +1 -0
  190. package/src/objects/primitives/datetime.edge.sketch.d.ts +1 -0
  191. package/src/objects/primitives/datetime.edge.sketch.d.ts.map +1 -0
  192. package/src/objects/primitives/number.edge.sketch.d.ts +1 -0
  193. package/src/objects/primitives/number.edge.sketch.d.ts.map +1 -0
  194. package/src/objects/primitives/string.edge.sketch.d.ts +1 -0
  195. package/src/objects/primitives/string.edge.sketch.d.ts.map +1 -0
  196. package/src/objects/scheduling/scheduling.edge.d.ts +1 -0
  197. package/src/objects/scheduling/scheduling.edge.d.ts.map +1 -0
  198. package/src/objects/scheduling/scheduling.edge.failure.d.ts +1 -0
  199. package/src/objects/scheduling/scheduling.edge.failure.d.ts.map +1 -0
  200. package/src/objects/time/time.edge.d.ts +1 -0
  201. package/src/objects/time/time.edge.d.ts.map +1 -0
  202. package/src/objects-interface/edges/edge.abstract.d.ts +1 -0
  203. package/src/objects-interface/edges/edge.abstract.d.ts.map +1 -0
  204. package/src/objects-interface/face.abstract.d.ts +1 -0
  205. package/src/objects-interface/face.abstract.d.ts.map +1 -0
  206. package/src/objects-interface/solid.abstract.d.ts +1 -0
  207. package/src/objects-interface/solid.abstract.d.ts.map +1 -0
  208. package/src/objects-interface/uv.abstract.d.ts +1 -0
  209. package/src/objects-interface/uv.abstract.d.ts.map +1 -0
  210. package/src/objects-interface/vertices/vertex.abstract.d.ts +1 -0
  211. package/src/objects-interface/vertices/vertex.abstract.d.ts.map +1 -0
  212. package/src/shared/payload.abstract.d.ts +1 -0
  213. package/src/shared/payload.abstract.d.ts.map +1 -0
  214. package/src/shared/request.abstract.d.ts +1 -0
  215. package/src/shared/request.abstract.d.ts.map +1 -0
  216. package/src/shared/response.abstract.d.ts +1 -0
  217. package/src/shared/response.abstract.d.ts.map +1 -0
  218. package/tsconfig-lib.json +3 -2
  219. package/tsconfig.tsbuildinfo +1 -1
  220. package/types/boolean.d.ts +19 -0
  221. package/types/string.d.ts +33 -0
@@ -1,44 +1,43 @@
1
1
  import { Moment } from "moment";
2
2
  import { LanguagePoint } from "#/index";
3
- import { MonthNameEnum } from "#/objects/datetime/points/month-name.enum";
4
- import { WeekDayEnum } from "#/objects/datetime/points/week-day.enum";
3
+ import { HolidaysCountry } from "#/objects/datetime/edges/locale/holidays-country.type";
5
4
  export declare class DatetimeEdge {
6
5
  private readonly value?;
7
6
  protected readonly date: Moment;
8
7
  constructor(value?: (Date | string) | undefined);
9
8
  /**
10
- * Retorna uma string amigável da data no formato "Dia, Mês DD".
11
- * Usa nomes de dias e meses no idioma português brasileiro.
12
- * @returns String formatada como "Domingo, Mar 29" ou "Hoje, Abr 1"
9
+ * Returns a human-friendly date string in the format "Day, Mon DD".
10
+ * Uses day and month names in the specified locale.
11
+ * @returns A formatted string such as "Sunday, Mar 29" or "Today, Apr 1"
13
12
  * @example
14
- * new DatetimeEdge(new Date("2026-03-29")).toFriendlyString() // "Domingo, Mar 29"
15
- * new DatetimeEdge(new Date()).toFriendlyString() // "Hoje, Abr 1"
13
+ * new DatetimeEdge(new Date("2026-03-29")).toFriendlyString() // "Sunday, Mar 29"
14
+ * new DatetimeEdge(new Date()).toFriendlyString() // "Today, Apr 1"
16
15
  */
17
16
  toFriendlyString(language: LanguagePoint): string;
18
17
  /**
19
- * Verifica se esta data é posterior a outra.
20
- * @param other - Data para comparação
21
- * @returns true se this > other, false caso contrário
18
+ * Checks whether this date is later than another date.
19
+ * @param datetime - Date to compare against.
20
+ * @returns `true` if this date is greater than `datetime`; otherwise, `false`.
22
21
  * @example
23
22
  * new DatetimeEdge(new Date("2026-12-01")).isAfter(new DatetimeEdge(new Date("2026-01-01"))) // true
24
23
  */
25
- isAfter(other: DatetimeEdge): boolean;
24
+ isAfter(datetime: DatetimeEdge): boolean;
26
25
  /**
27
- * Verifica se esta data é anterior a outra.
28
- * @param other - Data para comparação
29
- * @returns true se this < other, false caso contrário
26
+ * Checks whether this date is earlier than another date.
27
+ * @param datetime - Date to compare against.
28
+ * @returns `true` if this date is less than `datetime`; otherwise, `false`.
30
29
  * @example
31
30
  * new DatetimeEdge(new Date("2026-01-01")).isBefore(new DatetimeEdge(new Date("2026-12-01"))) // true
32
31
  */
33
- isBefore(other: DatetimeEdge): boolean;
32
+ isBefore(datetime: DatetimeEdge): boolean;
34
33
  /**
35
- * Verifica se esta data é igual a outra.
36
- * @param other - Data para comparação
37
- * @returns true se as datas são iguais, false caso contrário
34
+ * Checks whether this date is equal to another date.
35
+ * @param datetime - Date to compare against.
36
+ * @returns `true` if the dates are equal; otherwise, `false`.
38
37
  * @example
39
38
  * new DatetimeEdge(new Date("2026-01-01")).isEquals(new DatetimeEdge(new Date("2026-01-01"))) // true
40
39
  */
41
- isEquals(other: DatetimeEdge): boolean;
40
+ isEquals(datetime: DatetimeEdge): boolean;
42
41
  /**
43
42
  * Verifica se esta data está entre duas outras datas (exclusivo).
44
43
  * @param initialDate - Data inicial do intervalo
@@ -52,382 +51,394 @@ export declare class DatetimeEdge {
52
51
  */
53
52
  isBetween(initialDate: DatetimeEdge, finalDate: DatetimeEdge): boolean;
54
53
  /**
55
- * Verifica se a data cai em um fim de semana (sábado ou domingo).
56
- * @returns true se a data é sábado ou domingo, false caso contrário
54
+ * Checks whether this date falls on a weekend (Saturday or Sunday).
55
+ * @returns `true` if the date is a Saturday or Sunday; otherwise, `false`.
57
56
  * @example
58
- * new DatetimeEdge(new Date("2026-03-14")).isWeekend() // true (sábado)
59
- * new DatetimeEdge(new Date("2026-03-12")).isWeekend() // false (quinta-feira)
57
+ * new DatetimeEdge(new Date("2026-03-14")).isWeekend() // true (Saturday)
58
+ * new DatetimeEdge(new Date("2026-03-12")).isWeekend() // false (Thursday)
60
59
  */
61
60
  isWeekend(): boolean;
62
61
  /**
63
- * Verifica se a data é um feriado no Brasil.
64
- * @returns true se a data é um feriado nacional, false caso contrário
62
+ * Checks whether this date is a holiday in the specified country.
63
+ * @param country - The country whose holiday calendar will be used for validation.
64
+ * @returns `true` if the date is a holiday in the specified country; otherwise, `false`.
65
65
  * @example
66
- * new DatetimeEdge(new Date("2026-12-25")).isHoliday() // true (Natal)
67
- * new DatetimeEdge(new Date("2026-03-12")).isHoliday() // false
66
+ * new DatetimeEdge(new Date("2026-12-25")).isHoliday("BR") // true (Christmas Day)
67
+ * new DatetimeEdge(new Date("2026-03-12")).isHoliday("BR") // false
68
68
  */
69
- isHoliday(): boolean;
69
+ isHoliday(country: HolidaysCountry): boolean;
70
70
  /**
71
- * Verifica se a data é um dia útil (não é fim de semana nem feriado).
72
- * @returns true se a data é um dia útil, false caso contrário
71
+ * Checks whether the date is a business day (not a weekend or a holiday).
72
+ * @param country - The country whose holiday calendar will be used for validation.
73
+ * @returns `true` if the date is a business day; otherwise, `false`.
73
74
  * @example
74
- * new DatetimeEdge(new Date("2026-03-12")).isBusinessDay() // true (quinta-feira)
75
- * new DatetimeEdge(new Date("2026-12-25")).isBusinessDay() // false (Natal)
75
+ * new DatetimeEdge(new Date("2026-03-12")).isBusinessDay("BR") // true (Thursday)
76
+ * new DatetimeEdge(new Date("2026-12-25")).isBusinessDay("BR") // false (Christmas Day)
76
77
  */
77
- isBusinessDay(): boolean;
78
+ isBusinessDay(country: HolidaysCountry): boolean;
78
79
  /**
79
- * Verifica se a data corresponde ao dia de hoje.
80
- * @returns true se a data é hoje, false caso contrário
80
+ * Checks whether the date corresponds to today.
81
+ * @returns `true` if the date is today; otherwise, `false`.
81
82
  * @example
82
83
  * new DatetimeEdge(new Date()).isToday() // true
83
84
  * new DatetimeEdge(new Date("2020-01-01")).isToday() // false
84
85
  */
85
86
  isToday(): boolean;
86
87
  /**
87
- * Verifica se a data corresponde a ontem.
88
- * @returns true se a data é ontem, false caso contrário
88
+ * Checks whether the date corresponds to yesterday.
89
+ * @returns `true` if the date is yesterday; otherwise, `false`.
89
90
  * @example
90
91
  * new DatetimeEdge(new Date()).isYesterday() // false
91
92
  */
92
93
  isYesterday(): boolean;
93
94
  /**
94
- * Verifica se a data corresponde a amanhã.
95
- * @returns true se a data é amanhã, false caso contrário
95
+ * Checks whether the date corresponds to tomorrow.
96
+ * @returns `true` if the date is tomorrow; otherwise, `false`.
96
97
  * @example
97
98
  * new DatetimeEdge(new Date()).isTomorrow() // false
98
99
  */
99
100
  isTomorrow(): boolean;
100
101
  /**
101
- * Verifica se a data está no mesmo dia que outra.
102
- * @param other - Data para comparação
103
- * @returns true se ambas as datas estão no mesmo dia, false caso contrário
102
+ * Checks whether the date is on the same day as another date.
103
+ * @param datetime - Date for comparison
104
+ * @returns `true` if both dates are on the same day, `false` otherwise
104
105
  * @example
105
106
  * const a = new DatetimeEdge(new Date("2026-03-12T08:00"));
106
107
  * const b = new DatetimeEdge(new Date("2026-03-12T22:00"));
107
108
  * a.isSameDay(b) // true
108
109
  */
109
- isSameDay(other: DatetimeEdge): boolean;
110
+ isSameDay(datetime: DatetimeEdge): boolean;
110
111
  /**
111
- * Verifica se a data está no mesmo mês que outra.
112
- * @param other - Data para comparação
113
- * @returns true se ambas as datas estão no mesmo mês e ano, false caso contrário
112
+ * Checks whether the date is on the same month as another date.
113
+ * @param datetime - Date for comparison
114
+ * @returns `true` if both dates are on the same month and year, `false` otherwise
114
115
  * @example
115
116
  * const a = new DatetimeEdge(new Date("2026-03-01"));
116
117
  * const b = new DatetimeEdge(new Date("2026-03-31"));
117
118
  * a.isSameMonth(b) // true
118
119
  */
119
- isSameMonth(other: DatetimeEdge): boolean;
120
+ isSameMonth(datetime: DatetimeEdge): boolean;
120
121
  /**
121
- * Verifica se a data está no mesmo ano que outra.
122
- * @param other - Data para comparação
123
- * @returns true se ambas as datas estão no mesmo ano, false caso contrário
122
+ * Checks whether the date is on the same year as another date.
123
+ * @param datetime - Date for comparison
124
+ * @returns `true` if both dates are on the same year, `false` otherwise
124
125
  * @example
125
126
  * const a = new DatetimeEdge(new Date("2026-01-01"));
126
127
  * const b = new DatetimeEdge(new Date("2026-12-31"));
127
128
  * a.isSameYear(b) // true
128
129
  */
129
- isSameYear(other: DatetimeEdge): boolean;
130
+ isSameYear(datetime: DatetimeEdge): boolean;
130
131
  /**
131
- * Retorna o dia da semana da data.
132
- * @returns Enum WeekDayEnum representando o dia da semana
132
+ * Returns the day of the week for the date.
133
+ * @returns Enum WeekDayEnum representing the day of the week
133
134
  * @example
134
135
  * new DatetimeEdge(new Date("2026-03-12")).getDayOfWeek() // WeekDayEnum.thursday
135
136
  */
136
- getDayOfWeek(): WeekDayEnum;
137
+ getDayOfWeek(language: LanguagePoint): string;
137
138
  /**
138
- * Retorna o nome do mês da data.
139
- * @returns Enum MonthNameEnum representando o mês
139
+ * Returns the standard day of the week as a {@link WeekDayEnum} value.
140
+ * This internal method provides the canonical weekday representation
141
+ * used throughout the class before any localization or formatting is applied.
142
+ *
143
+ * @returns The corresponding {@link WeekDayEnum} for the current date.
144
+ * @example
145
+ * new DatetimeEdge(new Date("2026-03-12")).getStandardDayOfWeek() // WeekDayEnum.thursday
146
+ */
147
+ private getStandardDayOfWeek;
148
+ /**
149
+ * Returns the name of the month for the date.
150
+ * @returns Enum MonthNameEnum representing the month
140
151
  * @example
141
152
  * new DatetimeEdge(new Date("2026-03-12")).getNameOfMonth() // MonthNameEnum.march
142
153
  */
143
- getNameOfMonth(): MonthNameEnum;
154
+ getNameOfMonth(language: LanguagePoint): string;
144
155
  /**
145
- * Retorna o número do dia no mês.
146
- * @returns Número do dia (1-31)
156
+ * Returns the day of the month for the date.
157
+ * @returns NNumber of the day (1-31)
147
158
  * @example
148
159
  * new DatetimeEdge(new Date("2026-03-12")).getDayOfMonth() // 12
149
160
  */
150
161
  getDayOfMonth(): number;
151
162
  /**
152
- * Retorna o número do mês (base 0).
153
- * @returns Número do mês (0=janeiro, 11=dezembro)
163
+ * Returns the month number for the date (0-11).
164
+ * @returns Month number (0=January, 11=December)
154
165
  * @example
155
166
  * new DatetimeEdge(new Date("2026-03-12")).getNumberOfMonth() // 2
156
167
  */
157
168
  getNumberOfMonth(): number;
158
169
  /**
159
- * Retorna o ano da data.
160
- * @returns Número do ano
170
+ * Returns the year of the date.
171
+ * @returns The year number.
161
172
  * @example
162
173
  * new DatetimeEdge(new Date("2026-03-12")).getYear() // 2026
163
174
  */
164
175
  getYear(): number;
165
176
  /**
166
- * Retorna as horas da data.
167
- * @returns Número da hora (0-23)
177
+ * Returns the hours of the date.
178
+ * @returns The hour number (0-23)
168
179
  * @example
169
180
  * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getHours() // 14
170
181
  */
171
182
  getHours(): number;
172
183
  /**
173
- * Retorna os minutos da data.
174
- * @returns Número dos minutos (0-59)
184
+ * Returns the minutes of the date.
185
+ * @returns The minute number (0-59)
175
186
  * @example
176
187
  * new DatetimeEdge(new Date("2026-03-12T14:30:00")).getMinutes() // 30
177
188
  */
178
189
  getMinutes(): number;
179
190
  /**
180
- * Retorna os segundos da data.
181
- * @returns Número dos segundos (0-59)
191
+ * Returns the seconds of the date.
192
+ * @returns The second number (0-59)
182
193
  * @example
183
194
  * new DatetimeEdge(new Date("2026-03-12T14:30:45")).getSeconds() // 45
184
195
  */
185
196
  getSeconds(): number;
186
197
  /**
187
- * Adiciona dias à data e retorna uma nova instância.
188
- * @param days - Número de dias a adicionar
189
- * @returns Nova instância com a data atualizada
198
+ * Adds days to the date and returns a new instance.
199
+ * @param days - NNumber of days to add
200
+ * @returns New instance with the updated date
190
201
  * @example
191
202
  * new DatetimeEdge(new Date("2026-03-12")).addDays(5) // DatetimeEdge("2026-03-17")
192
203
  */
193
204
  addDays(days: number): DatetimeEdge;
194
205
  /**
195
- * Subtrai dias da data e retorna uma nova instância.
196
- * @param days - Número de dias a subtrair
197
- * @returns Nova instância com a data atualizada
206
+ * Subtracts days from the date and returns a new instance.
207
+ * @param days - NNumber of days to subtract
208
+ * @returns New instance with the updated date
198
209
  * @example
199
210
  * new DatetimeEdge(new Date("2026-03-12")).subtractDays(5) // DatetimeEdge("2026-03-07")
200
211
  */
201
212
  subtractDays(days: number): DatetimeEdge;
202
213
  /**
203
- * Adiciona meses à data e retorna uma nova instância.
204
- * @param months - Número de meses a adicionar
205
- * @returns Nova instância com a data atualizada
214
+ * Adds months to the date and returns a new instance.
215
+ * @param months - NNumber of months to add
216
+ * @returns New instance with the updated date
206
217
  * @example
207
218
  * new DatetimeEdge(new Date("2026-03-12")).addMonths(2) // DatetimeEdge("2026-05-12")
208
219
  */
209
220
  addMonths(months: number): DatetimeEdge;
210
221
  /**
211
- * Subtrai meses da data e retorna uma nova instância.
212
- * @param months - Número de meses a subtrair
213
- * @returns Nova instância com a data atualizada
222
+ * Subtracts months from the date and returns a new instance.
223
+ * @param months - NNumber of months to subtract
224
+ * @returns New instance with the updated date
214
225
  * @example
215
226
  * new DatetimeEdge(new Date("2026-03-12")).subtractMonths(2) // DatetimeEdge("2026-01-12")
216
227
  */
217
228
  subtractMonths(months: number): DatetimeEdge;
218
229
  /**
219
- * Adiciona anos à data e retorna uma nova instância.
220
- * @param years - Número de anos a adicionar
221
- * @returns Nova instância com a data atualizada
230
+ * Adds years to the date and returns a new instance.
231
+ * @param years - NNumber of years to add
232
+ * @returns New instance with the updated date
222
233
  * @example
223
234
  * new DatetimeEdge(new Date("2026-03-12")).addYears(1) // DatetimeEdge("2027-03-12")
224
235
  */
225
236
  addYears(years: number): DatetimeEdge;
226
237
  /**
227
- * Subtrai anos da data e retorna uma nova instância.
228
- * @param years - Número de anos a subtrair
229
- * @returns Nova instância com a data atualizada
238
+ * Subtracts years from the date and returns a new instance.
239
+ * @param years - NNumber of years to subtract
240
+ * @returns New instance with the updated date
230
241
  * @example
231
242
  * new DatetimeEdge(new Date("2026-03-12")).subtractYears(1) // DatetimeEdge("2025-03-12")
232
243
  */
233
244
  subtractYears(years: number): DatetimeEdge;
234
245
  /**
235
- * Adiciona horas à data e retorna uma nova instância.
236
- * @param hours - Número de horas a adicionar
237
- * @returns Nova instância com a data atualizada
246
+ * Adds hours to the date and returns a new instance.
247
+ * @param hours - NNumber of hours to add
248
+ * @returns New instance with the updated date
238
249
  * @example
239
250
  * new DatetimeEdge(new Date("2026-03-12T08:00")).addHours(3) // DatetimeEdge("2026-03-12T11:00")
240
251
  */
241
252
  addHours(hours: number): DatetimeEdge;
242
253
  /**
243
- * Adiciona minutos à data e retorna uma nova instância.
244
- * @param minutes - Número de minutos a adicionar
245
- * @returns Nova instância com a data atualizada
254
+ * Adds minutes to the date and returns a new instance.
255
+ * @param minutes - NNumber of minutes to add
256
+ * @returns New instance with the updated date
246
257
  * @example
247
258
  * new DatetimeEdge(new Date("2026-03-12T08:00")).addMinutes(30) // DatetimeEdge("2026-03-12T08:30")
248
259
  */
249
260
  addMinutes(minutes: number): DatetimeEdge;
250
261
  /**
251
- * Calcula a diferença em dias entre esta data e outra.
252
- * @param other - Data para calcular a diferença
253
- * @returns Número de dias de diferença (positivo se this > other)
262
+ * Calculates the difference in days between this date and another.
263
+ * @param datetime - Date to calculate the difference from
264
+ * @returns NNumber of days difference (positive if this > datetime)
254
265
  * @example
255
266
  * new DatetimeEdge(new Date("2026-03-15")).diffInDays(new DatetimeEdge(new Date("2026-03-10"))) // 5
256
267
  */
257
- diffInDays(other: DatetimeEdge): number;
268
+ diffInDays(datetime: DatetimeEdge): number;
258
269
  /**
259
- * Calcula a diferença em meses entre esta data e outra.
260
- * @param other - Data para calcular a diferença
261
- * @returns Número de meses de diferença (positivo se this > other)
270
+ * Calculates the difference in months between this date and another.
271
+ * @param datetime - Date to calculate the difference from
272
+ * @returns NNumber of months difference (positive if this > datetime)
262
273
  * @example
263
274
  * new DatetimeEdge(new Date("2026-05-12")).diffInMonths(new DatetimeEdge(new Date("2026-03-12"))) // 2
264
275
  */
265
- diffInMonths(other: DatetimeEdge): number;
276
+ diffInMonths(datetime: DatetimeEdge): number;
266
277
  /**
267
- * Calcula a diferença em anos entre esta data e outra.
268
- * @param other - Data para calcular a diferença
269
- * @returns Número de anos de diferença (positivo se this > other)
278
+ * Calculates the difference in years between this date and another date.
279
+ * @param datetime - Date to calculate the difference against.
280
+ * @returns The number of years between the dates (positive if this date is later than `datetime`).
270
281
  * @example
271
282
  * new DatetimeEdge(new Date("2028-03-12")).diffInYears(new DatetimeEdge(new Date("2026-03-12"))) // 2
272
283
  */
273
- diffInYears(other: DatetimeEdge): number;
284
+ diffInYears(datetime: DatetimeEdge): number;
274
285
  /**
275
286
  * Calcula a diferença em horas entre esta data e outra.
276
- * @param other - Data para calcular a diferença
277
- * @returns Número de horas de diferença (positivo se this > other)
287
+ * @param datetime - Data para calcular a diferença
288
+ * @returns Número de horas de diferença (positivo se this > datetime)
278
289
  * @example
279
290
  * new DatetimeEdge(new Date("2026-03-12T14:00")).diffInHours(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 6
280
291
  */
281
- diffInHours(other: DatetimeEdge): number;
292
+ diffInHours(datetime: DatetimeEdge): number;
282
293
  /**
283
- * Calcula a diferença em minutos entre esta data e outra.
284
- * @param other - Data para calcular a diferença
285
- * @returns Número de minutos de diferença (positivo se this > other)
294
+ * Calculates the difference in minutes between this date and another date.
295
+ * @param datetime - Date to calculate the difference against.
296
+ * @returns The number of minutes between the dates (positive if this date is later than `datetime`).
286
297
  * @example
287
298
  * new DatetimeEdge(new Date("2026-03-12T08:45")).diffInMinutes(new DatetimeEdge(new Date("2026-03-12T08:00"))) // 45
288
299
  */
289
- diffInMinutes(other: DatetimeEdge): number;
300
+ diffInMinutes(datetime: DatetimeEdge): number;
290
301
  /**
291
- * Retorna a diferença legível entre esta data e o momento atual.
292
- * @returns String descritiva como "3 dias.", "2 horas.", etc.
302
+ * Returns a human-readable difference between this date and the current moment.
303
+ * @returns A descriptive string such as "3 days ago.", "2 hours ago.", etc.
293
304
  * @example
294
- * new DatetimeEdge(new Date("2025-03-12")).diffFromNow() // "1 ano."
305
+ * new DatetimeEdge(new Date("2025-03-12")).diffFromNow() // "1 year ago."
295
306
  */
296
307
  diffFromNow(): string;
297
308
  /**
298
- * Retorna o início do dia (00:00:00.000) como nova instância.
299
- * @returns Nova instância com o horário zerado para o início do dia
309
+ * Returns the start of the day (00:00:00.000) as a new instance.
310
+ * @returns A new instance with the time set to the beginning of the day
300
311
  * @example
301
312
  * new DatetimeEdge(new Date("2026-03-12T14:30")).startOfDay()
302
313
  * // DatetimeEdge("2026-03-12T00:00:00.000")
303
314
  */
304
315
  startOfDay(): DatetimeEdge;
305
316
  /**
306
- * Retorna o fim do dia (23:59:59.999) como nova instância.
307
- * @returns Nova instância com o horário ajustado para o fim do dia
317
+ * Returns the end of the day (23:59:59.999) as a new instance.
318
+ * @returns A new instance with the time set to the end of the day
308
319
  * @example
309
320
  * new DatetimeEdge(new Date("2026-03-12T08:00")).endOfDay()
310
321
  * // DatetimeEdge("2026-03-12T23:59:59.999")
311
322
  */
312
323
  endOfDay(): DatetimeEdge;
313
324
  /**
314
- * Retorna o início do mês como nova instância.
315
- * @returns Nova instância apontando para o primeiro dia do mês à meia-noite
325
+ * Returns the start of the month as a new instance.
326
+ * @returns A new instance pointing to the first day of the month at midnight
316
327
  * @example
317
328
  * new DatetimeEdge(new Date("2026-03-12")).startOfMonth()
318
329
  * // DatetimeEdge("2026-03-01T00:00:00.000")
319
330
  */
320
331
  startOfMonth(): DatetimeEdge;
321
332
  /**
322
- * Retorna o fim do mês como nova instância.
323
- * @returns Nova instância apontando para o último dia do mês ao fim do dia
333
+ * Returns the end of the month as a new instance.
334
+ * @returns A new instance pointing to the last day of the month at the end of the day
324
335
  * @example
325
336
  * new DatetimeEdge(new Date("2026-03-12")).endOfMonth()
326
337
  * // DatetimeEdge("2026-03-31T23:59:59.999")
327
338
  */
328
339
  endOfMonth(): DatetimeEdge;
329
340
  /**
330
- * Retorna o início do ano como nova instância.
331
- * @returns Nova instância apontando para o primeiro dia do ano à meia-noite
341
+ * Returns the start of the year as a new instance.
342
+ * @returns A new instance pointing to the first day of the year at midnight
332
343
  * @example
333
344
  * new DatetimeEdge(new Date("2026-03-12")).startOfYear()
334
345
  * // DatetimeEdge("2026-01-01T00:00:00.000")
335
346
  */
336
347
  startOfYear(): DatetimeEdge;
337
348
  /**
338
- * Retorna o fim do ano como nova instância.
339
- * @returns Nova instância apontando para o último dia do ano ao fim do dia
349
+ * Returns the end of the year as a new instance.
350
+ * @returns A new instance pointing to the last day of the year at the end of the day
340
351
  * @example
341
352
  * new DatetimeEdge(new Date("2026-03-12")).endOfYear()
342
353
  * // DatetimeEdge("2026-12-31T23:59:59.999")
343
354
  */
344
355
  endOfYear(): DatetimeEdge;
345
356
  /**
346
- * Cria uma cópia independente desta instância de DatetimeEdge.
347
- * @returns Nova instância com o mesmo valor de data
357
+ * Creates an independent copy of this DatetimeEdge instance.
358
+ * @returns A new instance with the same date value
348
359
  * @example
349
360
  * const dt1 = new DatetimeEdge(new Date("2026-03-12"));
350
- * const dt2 = dt1.clone(); // instância independente
361
+ * const dt2 = dt1.clone(); // independent instance
351
362
  */
352
363
  clone(): DatetimeEdge;
353
364
  /**
354
- * Retorna uma nova instância com a data alterada, mantendo o horário.
355
- * @param date - Novo objeto Date
356
- * @returns Nova instância com o valor fornecido
365
+ * Returns a new instance with the date changed, keeping the time.
366
+ * @param date - New Date object
367
+ * @returns New instance with the provided value
357
368
  * @example
358
369
  * new DatetimeEdge(new Date("2026-03-12")).withDate(new Date("2026-12-25"))
359
370
  * // DatetimeEdge("2026-12-25")
360
371
  */
361
372
  withDate(date: Date): DatetimeEdge;
362
373
  /**
363
- * Retorna a data no formato ISO 8601.
364
- * @returns String no formato "YYYY-MM-DDTHH:mm:ss.sssZ"
374
+ * Returns the date in ISO 8601 format.
375
+ * @returns String in the format "YYYY-MM-DDTHH:mm:ss.sssZ"
365
376
  * @example
366
377
  * new DatetimeEdge(new Date("2026-03-12")).toISOString() // "2026-03-12T00:00:00.000Z"
367
378
  */
368
379
  toISOString(): string;
369
380
  /**
370
- * Retorna a data como objeto Date nativo.
371
- * @returns Objeto Date representando esta data
381
+ * Returns the date as a native Date object.
382
+ * @returns Date object representing this date
372
383
  * @example
373
384
  * new DatetimeEdge(new Date("2026-03-12")).toDate() // Date object
374
385
  */
375
386
  toDate(): Date;
376
387
  /**
377
- * Retorna a data no formato YYYY-MM-DD.
378
- * @returns String no formato "YYYY-MM-DD"
388
+ * Returns the date in YYYY-MM-DD format.
389
+ * @returns String in the format "YYYY-MM-DD"
379
390
  * @example
380
391
  * new DatetimeEdge(new Date("2026-03-12")).toYYYYMMDD() // "2026-03-12"
381
392
  */
382
393
  toYYYYMMDD(): string;
383
394
  /**
384
- * Retorna a data no formato DD/MM/YYYY (padrão brasileiro).
395
+ * Returns the date in DD/MM/YYYY format (Brazilian standard).
385
396
  * @returns String no formato "DD/MM/YYYY"
386
397
  * @example
387
398
  * new DatetimeEdge(new Date("2026-03-12")).toDDMMYYYY() // "12/03/2026"
388
399
  */
389
400
  toDDMMYYYY(): string;
390
401
  /**
391
- * Retorna a data e hora no formato DD/MM/YYYY HH:mm.
392
- * @returns String no formato "DD/MM/YYYY HH:mm"
402
+ * Returns the date and time in the format DD/MM/YYYY HH:mm.
403
+ * @returns A string in the format "DD/MM/YYYY HH:mm".
393
404
  * @example
394
405
  * new DatetimeEdge(new Date("2026-03-12T14:30")).toDDMMYYYYHHmm() // "12/03/2026 14:30"
395
406
  */
396
407
  toDDMMYYYYHHmm(): string;
397
408
  /**
398
- * Retorna a data formatada com um padrão customizado do moment.js.
399
- * @param format - Padrão de formatação (ex: "YYYY-MM-DD HH:mm:ss")
400
- * @returns String formatada conforme o padrão fornecido
409
+ * Returns the date formatted with a custom pattern from moment.js.
410
+ * @param format - Formatting pattern (e.g., "YYYY-MM-DD HH:mm:ss")
411
+ * @returns Formatted string according to the provided pattern
401
412
  * @example
402
413
  * new DatetimeEdge(new Date("2026-03-12T14:30")).format("MMMM Do YYYY") // "March 12th 2026"
403
414
  */
404
415
  format(format: string): string;
405
416
  /**
406
- * Retorna o timestamp em milissegundos da data.
407
- * @returns Número de milissegundos desde 01/01/1970 UTC
417
+ * Returns the timestamp in milliseconds of the date.
418
+ * @returns NNumber of milliseconds since 01/01/1970 UTC
408
419
  * @example
409
420
  * new DatetimeEdge(new Date("2026-03-12")).timestamp() // 1773273600000
410
421
  */
411
422
  timestamp(): number;
412
423
  /**
413
- * Retorna o timestamp Unix em segundos da data.
414
- * @returns Número de segundos desde 01/01/1970 UTC
424
+ * Returns the Unix timestamp in seconds of the date.
425
+ * @returns NNumber of seconds since 01/01/1970 UTC
415
426
  * @example
416
427
  * new DatetimeEdge(new Date("2026-03-12")).unix() // 1773273600
417
428
  */
418
429
  unix(): number;
419
430
  /**
420
- * Cria um DatetimeEdge representando o momento atual.
421
- * @returns Nova instância com a data e hora atuais
431
+ * Creates a new DatetimeEdge representing the current moment.
432
+ * @returns New instance with the current date and time
422
433
  * @example
423
- * DatetimeEdge.now() // DatetimeEdge com a data e hora do momento da chamada
434
+ * DatetimeEdge.now() // DatetimeEdge with the current date and time
424
435
  */
425
436
  static now(): DatetimeEdge;
426
437
  /**
427
- * Retorna a maior (mais recente) data de uma lista.
428
- * @param dates - Array de instâncias de DatetimeEdge para comparação
429
- * @returns A instância com a data mais recente
430
- * @throws {Error} Se o array estiver vazio
438
+ * Returns the latest (most recent) date from an array.
439
+ * @param dates - Array of DatetimeEdge instances to compare
440
+ * @returns The instance with the latest date
441
+ * @throws {Error} If the array is empty
431
442
  * @example
432
443
  * DatetimeEdge.max([
433
444
  * new DatetimeEdge(new Date("2026-01-01")),
@@ -436,10 +447,10 @@ export declare class DatetimeEdge {
436
447
  */
437
448
  static max(dates: DatetimeEdge[]): DatetimeEdge;
438
449
  /**
439
- * Retorna a menor (mais antiga) data de uma lista.
440
- * @param dates - Array de instâncias de DatetimeEdge para comparação
441
- * @returns A instância com a data mais antiga
442
- * @throws {Error} Se o array estiver vazio
450
+ * Returns the earliest (oldest) date from an array.
451
+ * @param dates - Array of DatetimeEdge instances to compare
452
+ * @returns The instance with the earliest date
453
+ * @throws {Error} If the array is empty
443
454
  * @example
444
455
  * DatetimeEdge.min([
445
456
  * new DatetimeEdge(new Date("2026-01-01")),
@@ -448,8 +459,9 @@ export declare class DatetimeEdge {
448
459
  */
449
460
  static min(dates: DatetimeEdge[]): DatetimeEdge;
450
461
  /**
451
- * Valida se a data fornecida no construtor é uma data válida.
452
- * @throws {Error} Se a data for inválida
462
+ * Validates whether the date provided to the constructor is a valid date.
463
+ * @throws {Error} If the date is invalid.
453
464
  */
454
465
  protected validate(): void;
455
466
  }
467
+ //# sourceMappingURL=datetime.edge.d.ts.map