@ensforge/react 0.0.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.
Files changed (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +87 -0
  3. package/dist/atoms/batch.d.ts +14 -0
  4. package/dist/atoms/batch.d.ts.map +1 -0
  5. package/dist/atoms/batch.js +16 -0
  6. package/dist/atoms/batch.js.map +1 -0
  7. package/dist/atoms/capabilities.d.ts +531 -0
  8. package/dist/atoms/capabilities.d.ts.map +1 -0
  9. package/dist/atoms/capabilities.js +21 -0
  10. package/dist/atoms/capabilities.js.map +1 -0
  11. package/dist/atoms/dns.d.ts +75 -0
  12. package/dist/atoms/dns.d.ts.map +1 -0
  13. package/dist/atoms/dns.js +18 -0
  14. package/dist/atoms/dns.js.map +1 -0
  15. package/dist/atoms/events.d.ts +86 -0
  16. package/dist/atoms/events.d.ts.map +1 -0
  17. package/dist/atoms/events.js +11 -0
  18. package/dist/atoms/events.js.map +1 -0
  19. package/dist/atoms/generic.d.ts +14 -0
  20. package/dist/atoms/generic.d.ts.map +1 -0
  21. package/dist/atoms/generic.js +13 -0
  22. package/dist/atoms/generic.js.map +1 -0
  23. package/dist/atoms/migration.d.ts +171 -0
  24. package/dist/atoms/migration.d.ts.map +1 -0
  25. package/dist/atoms/migration.js +15 -0
  26. package/dist/atoms/migration.js.map +1 -0
  27. package/dist/atoms/mutation.d.ts +12 -0
  28. package/dist/atoms/mutation.d.ts.map +1 -0
  29. package/dist/atoms/mutation.js +11 -0
  30. package/dist/atoms/mutation.js.map +1 -0
  31. package/dist/atoms/name.d.ts +141 -0
  32. package/dist/atoms/name.d.ts.map +1 -0
  33. package/dist/atoms/name.js +22 -0
  34. package/dist/atoms/name.js.map +1 -0
  35. package/dist/atoms/ownership.d.ts +12 -0
  36. package/dist/atoms/ownership.d.ts.map +1 -0
  37. package/dist/atoms/ownership.js +14 -0
  38. package/dist/atoms/ownership.js.map +1 -0
  39. package/dist/atoms/permissions.d.ts +16 -0
  40. package/dist/atoms/permissions.d.ts.map +1 -0
  41. package/dist/atoms/permissions.js +18 -0
  42. package/dist/atoms/permissions.js.map +1 -0
  43. package/dist/atoms/query.d.ts +18 -0
  44. package/dist/atoms/query.d.ts.map +1 -0
  45. package/dist/atoms/query.js +30 -0
  46. package/dist/atoms/query.js.map +1 -0
  47. package/dist/atoms/records.d.ts +93 -0
  48. package/dist/atoms/records.d.ts.map +1 -0
  49. package/dist/atoms/records.js +34 -0
  50. package/dist/atoms/records.js.map +1 -0
  51. package/dist/atoms/registration.d.ts +253 -0
  52. package/dist/atoms/registration.d.ts.map +1 -0
  53. package/dist/atoms/registration.js +23 -0
  54. package/dist/atoms/registration.js.map +1 -0
  55. package/dist/atoms/resolution.d.ts +45 -0
  56. package/dist/atoms/resolution.d.ts.map +1 -0
  57. package/dist/atoms/resolution.js +20 -0
  58. package/dist/atoms/resolution.js.map +1 -0
  59. package/dist/atoms/reverse.d.ts +14 -0
  60. package/dist/atoms/reverse.d.ts.map +1 -0
  61. package/dist/atoms/reverse.js +13 -0
  62. package/dist/atoms/reverse.js.map +1 -0
  63. package/dist/atoms/stream.d.ts +11 -0
  64. package/dist/atoms/stream.d.ts.map +1 -0
  65. package/dist/atoms/stream.js +23 -0
  66. package/dist/atoms/stream.js.map +1 -0
  67. package/dist/atoms/subnames.d.ts +12 -0
  68. package/dist/atoms/subnames.d.ts.map +1 -0
  69. package/dist/atoms/subnames.js +14 -0
  70. package/dist/atoms/subnames.js.map +1 -0
  71. package/dist/atoms/wrapping.d.ts +13 -0
  72. package/dist/atoms/wrapping.d.ts.map +1 -0
  73. package/dist/atoms/wrapping.js +15 -0
  74. package/dist/atoms/wrapping.js.map +1 -0
  75. package/dist/atoms.d.ts +19 -0
  76. package/dist/atoms.js +20 -0
  77. package/dist/cache/invalidation.d.ts +18 -0
  78. package/dist/cache/invalidation.d.ts.map +1 -0
  79. package/dist/cache/invalidation.js +23 -0
  80. package/dist/cache/invalidation.js.map +1 -0
  81. package/dist/cache/prefetch.d.ts +10 -0
  82. package/dist/cache/prefetch.d.ts.map +1 -0
  83. package/dist/cache/prefetch.js +10 -0
  84. package/dist/cache/prefetch.js.map +1 -0
  85. package/dist/cache/registry.d.ts +10 -0
  86. package/dist/cache/registry.d.ts.map +1 -0
  87. package/dist/cache/registry.js +12 -0
  88. package/dist/cache/registry.js.map +1 -0
  89. package/dist/cache.d.ts +4 -0
  90. package/dist/cache.js +5 -0
  91. package/dist/hooks/batch.d.ts +23 -0
  92. package/dist/hooks/batch.d.ts.map +1 -0
  93. package/dist/hooks/batch.js +25 -0
  94. package/dist/hooks/batch.js.map +1 -0
  95. package/dist/hooks/capabilities.d.ts +2084 -0
  96. package/dist/hooks/capabilities.d.ts.map +1 -0
  97. package/dist/hooks/capabilities.js +39 -0
  98. package/dist/hooks/capabilities.js.map +1 -0
  99. package/dist/hooks/dns.d.ts +262 -0
  100. package/dist/hooks/dns.d.ts.map +1 -0
  101. package/dist/hooks/dns.js +28 -0
  102. package/dist/hooks/dns.js.map +1 -0
  103. package/dist/hooks/events.d.ts +275 -0
  104. package/dist/hooks/events.d.ts.map +1 -0
  105. package/dist/hooks/events.js +16 -0
  106. package/dist/hooks/events.js.map +1 -0
  107. package/dist/hooks/generic.d.ts +12 -0
  108. package/dist/hooks/generic.d.ts.map +1 -0
  109. package/dist/hooks/generic.js +13 -0
  110. package/dist/hooks/generic.js.map +1 -0
  111. package/dist/hooks/index.d.ts +20 -0
  112. package/dist/hooks/migration.d.ts +653 -0
  113. package/dist/hooks/migration.d.ts.map +1 -0
  114. package/dist/hooks/migration.js +23 -0
  115. package/dist/hooks/migration.js.map +1 -0
  116. package/dist/hooks/name.d.ts +522 -0
  117. package/dist/hooks/name.d.ts.map +1 -0
  118. package/dist/hooks/name.js +41 -0
  119. package/dist/hooks/name.js.map +1 -0
  120. package/dist/hooks/ownership.d.ts +17 -0
  121. package/dist/hooks/ownership.d.ts.map +1 -0
  122. package/dist/hooks/ownership.js +19 -0
  123. package/dist/hooks/ownership.js.map +1 -0
  124. package/dist/hooks/permissions.d.ts +18 -0
  125. package/dist/hooks/permissions.d.ts.map +1 -0
  126. package/dist/hooks/permissions.js +21 -0
  127. package/dist/hooks/permissions.js.map +1 -0
  128. package/dist/hooks/records.d.ts +291 -0
  129. package/dist/hooks/records.d.ts.map +1 -0
  130. package/dist/hooks/records.js +49 -0
  131. package/dist/hooks/records.js.map +1 -0
  132. package/dist/hooks/registration.d.ts +960 -0
  133. package/dist/hooks/registration.d.ts.map +1 -0
  134. package/dist/hooks/registration.js +34 -0
  135. package/dist/hooks/registration.js.map +1 -0
  136. package/dist/hooks/resolution.d.ts +137 -0
  137. package/dist/hooks/resolution.d.ts.map +1 -0
  138. package/dist/hooks/resolution.js +31 -0
  139. package/dist/hooks/resolution.js.map +1 -0
  140. package/dist/hooks/reverse.d.ts +28 -0
  141. package/dist/hooks/reverse.d.ts.map +1 -0
  142. package/dist/hooks/reverse.js +18 -0
  143. package/dist/hooks/reverse.js.map +1 -0
  144. package/dist/hooks/subnames.d.ts +14 -0
  145. package/dist/hooks/subnames.d.ts.map +1 -0
  146. package/dist/hooks/subnames.js +17 -0
  147. package/dist/hooks/subnames.js.map +1 -0
  148. package/dist/hooks/use-cache.d.ts +11 -0
  149. package/dist/hooks/use-cache.d.ts.map +1 -0
  150. package/dist/hooks/use-cache.js +20 -0
  151. package/dist/hooks/use-cache.js.map +1 -0
  152. package/dist/hooks/use-mutation.d.ts +8 -0
  153. package/dist/hooks/use-mutation.d.ts.map +1 -0
  154. package/dist/hooks/use-mutation.js +79 -0
  155. package/dist/hooks/use-mutation.js.map +1 -0
  156. package/dist/hooks/use-query.d.ts +10 -0
  157. package/dist/hooks/use-query.d.ts.map +1 -0
  158. package/dist/hooks/use-query.js +81 -0
  159. package/dist/hooks/use-query.js.map +1 -0
  160. package/dist/hooks/use-suspense-query.d.ts +15 -0
  161. package/dist/hooks/use-suspense-query.d.ts.map +1 -0
  162. package/dist/hooks/use-suspense-query.js +22 -0
  163. package/dist/hooks/use-suspense-query.js.map +1 -0
  164. package/dist/hooks/wrapping.d.ts +19 -0
  165. package/dist/hooks/wrapping.d.ts.map +1 -0
  166. package/dist/hooks/wrapping.js +21 -0
  167. package/dist/hooks/wrapping.js.map +1 -0
  168. package/dist/index.d.ts +35 -0
  169. package/dist/index.js +30 -0
  170. package/dist/internal/action-types.d.ts +8 -0
  171. package/dist/internal/action-types.d.ts.map +1 -0
  172. package/dist/internal/runtime.js +9 -0
  173. package/dist/internal/runtime.js.map +1 -0
  174. package/dist/mutation/options.d.ts +12 -0
  175. package/dist/mutation/options.d.ts.map +1 -0
  176. package/dist/mutation/result.d.ts +25 -0
  177. package/dist/mutation/result.d.ts.map +1 -0
  178. package/dist/provider/context.d.ts +9 -0
  179. package/dist/provider/context.d.ts.map +1 -0
  180. package/dist/provider/context.js +15 -0
  181. package/dist/provider/context.js.map +1 -0
  182. package/dist/provider/ensforge-provider.d.ts +22 -0
  183. package/dist/provider/ensforge-provider.d.ts.map +1 -0
  184. package/dist/provider/ensforge-provider.js +31 -0
  185. package/dist/provider/ensforge-provider.js.map +1 -0
  186. package/dist/provider/hooks.d.ts +6 -0
  187. package/dist/provider/hooks.d.ts.map +1 -0
  188. package/dist/provider/hooks.js +13 -0
  189. package/dist/provider/hooks.js.map +1 -0
  190. package/dist/provider/index.d.ts +4 -0
  191. package/dist/query/keys.d.ts +6 -0
  192. package/dist/query/keys.d.ts.map +1 -0
  193. package/dist/query/keys.js +25 -0
  194. package/dist/query/keys.js.map +1 -0
  195. package/dist/query/options.d.ts +31 -0
  196. package/dist/query/options.d.ts.map +1 -0
  197. package/dist/query/options.js +19 -0
  198. package/dist/query/options.js.map +1 -0
  199. package/dist/query/result.d.ts +25 -0
  200. package/dist/query/result.d.ts.map +1 -0
  201. package/dist/query/result.js +19 -0
  202. package/dist/query/result.js.map +1 -0
  203. package/package.json +70 -0
@@ -0,0 +1,960 @@
1
+ import { UseEnsQueryParameters } from "../query/options.js";
2
+ import { EnsSuspenseQueryResult, UseEnsSuspenseQueryParameters } from "./use-suspense-query.js";
3
+ import { EnsQueryResult } from "../query/result.js";
4
+ import { EnsMutationOptions } from "../mutation/options.js";
5
+ import { EnsMutationResult } from "../mutation/result.js";
6
+ import "../index.js";
7
+ //#region src/hooks/registration.d.ts
8
+ declare const useCommitmentStatus: <Selected = {
9
+ readonly status: "not-found";
10
+ readonly protocol: "v1" | "v2";
11
+ } | {
12
+ readonly status: "pending";
13
+ readonly protocol: "v1" | "v2";
14
+ readonly submittedAt: bigint;
15
+ readonly readyAt: bigint;
16
+ readonly expiresAt: bigint;
17
+ readonly remainingSeconds: bigint;
18
+ } | {
19
+ readonly status: "ready";
20
+ readonly protocol: "v1" | "v2";
21
+ readonly submittedAt: bigint;
22
+ readonly readyAt: bigint;
23
+ readonly expiresAt: bigint;
24
+ readonly remainingSeconds: bigint;
25
+ } | {
26
+ readonly status: "expired";
27
+ readonly protocol: "v1" | "v2";
28
+ readonly submittedAt: bigint;
29
+ readonly readyAt: bigint;
30
+ readonly expiresAt: bigint;
31
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").GetCommitmentStatusParameters, {
32
+ readonly status: "not-found";
33
+ readonly protocol: "v1" | "v2";
34
+ } | {
35
+ readonly status: "pending";
36
+ readonly protocol: "v1" | "v2";
37
+ readonly submittedAt: bigint;
38
+ readonly readyAt: bigint;
39
+ readonly expiresAt: bigint;
40
+ readonly remainingSeconds: bigint;
41
+ } | {
42
+ readonly status: "ready";
43
+ readonly protocol: "v1" | "v2";
44
+ readonly submittedAt: bigint;
45
+ readonly readyAt: bigint;
46
+ readonly expiresAt: bigint;
47
+ readonly remainingSeconds: bigint;
48
+ } | {
49
+ readonly status: "expired";
50
+ readonly protocol: "v1" | "v2";
51
+ readonly submittedAt: bigint;
52
+ readonly readyAt: bigint;
53
+ readonly expiresAt: bigint;
54
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
55
+ declare const useCommitmentStatusSuspense: <Selected = {
56
+ readonly status: "not-found";
57
+ readonly protocol: "v1" | "v2";
58
+ } | {
59
+ readonly status: "pending";
60
+ readonly protocol: "v1" | "v2";
61
+ readonly submittedAt: bigint;
62
+ readonly readyAt: bigint;
63
+ readonly expiresAt: bigint;
64
+ readonly remainingSeconds: bigint;
65
+ } | {
66
+ readonly status: "ready";
67
+ readonly protocol: "v1" | "v2";
68
+ readonly submittedAt: bigint;
69
+ readonly readyAt: bigint;
70
+ readonly expiresAt: bigint;
71
+ readonly remainingSeconds: bigint;
72
+ } | {
73
+ readonly status: "expired";
74
+ readonly protocol: "v1" | "v2";
75
+ readonly submittedAt: bigint;
76
+ readonly readyAt: bigint;
77
+ readonly expiresAt: bigint;
78
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetCommitmentStatusParameters, {
79
+ readonly status: "not-found";
80
+ readonly protocol: "v1" | "v2";
81
+ } | {
82
+ readonly status: "pending";
83
+ readonly protocol: "v1" | "v2";
84
+ readonly submittedAt: bigint;
85
+ readonly readyAt: bigint;
86
+ readonly expiresAt: bigint;
87
+ readonly remainingSeconds: bigint;
88
+ } | {
89
+ readonly status: "ready";
90
+ readonly protocol: "v1" | "v2";
91
+ readonly submittedAt: bigint;
92
+ readonly readyAt: bigint;
93
+ readonly expiresAt: bigint;
94
+ readonly remainingSeconds: bigint;
95
+ } | {
96
+ readonly status: "expired";
97
+ readonly protocol: "v1" | "v2";
98
+ readonly submittedAt: bigint;
99
+ readonly readyAt: bigint;
100
+ readonly expiresAt: bigint;
101
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
102
+ declare const useRegistrationParameters: <Selected = {
103
+ readonly protocol: "v1";
104
+ readonly registrar: `0x${string}`;
105
+ readonly priceOracle: `0x${string}`;
106
+ readonly minimumRegistrationDuration: bigint;
107
+ readonly minimumRenewalDuration: bigint;
108
+ readonly minimumCommitmentAge: bigint;
109
+ readonly maximumCommitmentAge: bigint;
110
+ readonly payment: {
111
+ readonly kind: "native";
112
+ };
113
+ } | {
114
+ readonly protocol: "v2";
115
+ readonly registrar: `0x${string}`;
116
+ readonly priceOracle: `0x${string}`;
117
+ readonly minimumRegistrationDuration: bigint;
118
+ readonly minimumRenewalDuration: bigint;
119
+ readonly minimumCommitmentAge: bigint;
120
+ readonly maximumCommitmentAge: bigint;
121
+ readonly payment: {
122
+ readonly kind: "erc20";
123
+ readonly enumerable: false;
124
+ };
125
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").BlockParameters, {
126
+ readonly protocol: "v1";
127
+ readonly registrar: `0x${string}`;
128
+ readonly priceOracle: `0x${string}`;
129
+ readonly minimumRegistrationDuration: bigint;
130
+ readonly minimumRenewalDuration: bigint;
131
+ readonly minimumCommitmentAge: bigint;
132
+ readonly maximumCommitmentAge: bigint;
133
+ readonly payment: {
134
+ readonly kind: "native";
135
+ };
136
+ } | {
137
+ readonly protocol: "v2";
138
+ readonly registrar: `0x${string}`;
139
+ readonly priceOracle: `0x${string}`;
140
+ readonly minimumRegistrationDuration: bigint;
141
+ readonly minimumRenewalDuration: bigint;
142
+ readonly minimumCommitmentAge: bigint;
143
+ readonly maximumCommitmentAge: bigint;
144
+ readonly payment: {
145
+ readonly kind: "erc20";
146
+ readonly enumerable: false;
147
+ };
148
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
149
+ declare const useRegistrationParametersSuspense: <Selected = {
150
+ readonly protocol: "v1";
151
+ readonly registrar: `0x${string}`;
152
+ readonly priceOracle: `0x${string}`;
153
+ readonly minimumRegistrationDuration: bigint;
154
+ readonly minimumRenewalDuration: bigint;
155
+ readonly minimumCommitmentAge: bigint;
156
+ readonly maximumCommitmentAge: bigint;
157
+ readonly payment: {
158
+ readonly kind: "native";
159
+ };
160
+ } | {
161
+ readonly protocol: "v2";
162
+ readonly registrar: `0x${string}`;
163
+ readonly priceOracle: `0x${string}`;
164
+ readonly minimumRegistrationDuration: bigint;
165
+ readonly minimumRenewalDuration: bigint;
166
+ readonly minimumCommitmentAge: bigint;
167
+ readonly maximumCommitmentAge: bigint;
168
+ readonly payment: {
169
+ readonly kind: "erc20";
170
+ readonly enumerable: false;
171
+ };
172
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").BlockParameters, {
173
+ readonly protocol: "v1";
174
+ readonly registrar: `0x${string}`;
175
+ readonly priceOracle: `0x${string}`;
176
+ readonly minimumRegistrationDuration: bigint;
177
+ readonly minimumRenewalDuration: bigint;
178
+ readonly minimumCommitmentAge: bigint;
179
+ readonly maximumCommitmentAge: bigint;
180
+ readonly payment: {
181
+ readonly kind: "native";
182
+ };
183
+ } | {
184
+ readonly protocol: "v2";
185
+ readonly registrar: `0x${string}`;
186
+ readonly priceOracle: `0x${string}`;
187
+ readonly minimumRegistrationDuration: bigint;
188
+ readonly minimumRenewalDuration: bigint;
189
+ readonly minimumCommitmentAge: bigint;
190
+ readonly maximumCommitmentAge: bigint;
191
+ readonly payment: {
192
+ readonly kind: "erc20";
193
+ readonly enumerable: false;
194
+ };
195
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
196
+ declare const useRegistrationPlan: <Selected = {
197
+ readonly status: "unavailable";
198
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
199
+ } | {
200
+ readonly status: "payment-token-required";
201
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
202
+ } | {
203
+ readonly status: "unsupported-payment-token";
204
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
205
+ readonly paymentToken: `0x${string}`;
206
+ } | {
207
+ readonly status: "ready" | "commitment-required" | "commitment-pending" | "commitment-expired";
208
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
209
+ readonly parameters: {
210
+ readonly protocol: "v1";
211
+ readonly registrar: `0x${string}`;
212
+ readonly priceOracle: `0x${string}`;
213
+ readonly minimumRegistrationDuration: bigint;
214
+ readonly minimumRenewalDuration: bigint;
215
+ readonly minimumCommitmentAge: bigint;
216
+ readonly maximumCommitmentAge: bigint;
217
+ readonly payment: {
218
+ readonly kind: "native";
219
+ };
220
+ } | {
221
+ readonly protocol: "v2";
222
+ readonly registrar: `0x${string}`;
223
+ readonly priceOracle: `0x${string}`;
224
+ readonly minimumRegistrationDuration: bigint;
225
+ readonly minimumRenewalDuration: bigint;
226
+ readonly minimumCommitmentAge: bigint;
227
+ readonly maximumCommitmentAge: bigint;
228
+ readonly payment: {
229
+ readonly kind: "erc20";
230
+ readonly enumerable: false;
231
+ };
232
+ };
233
+ readonly price: {
234
+ readonly status: "available";
235
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
236
+ readonly protocol: "v1" | "v2";
237
+ readonly registrar: `0x${string}`;
238
+ readonly duration: bigint;
239
+ readonly base: bigint;
240
+ readonly premium: bigint;
241
+ readonly total: bigint;
242
+ readonly currency: {
243
+ readonly kind: "native";
244
+ readonly symbol: "ETH";
245
+ readonly decimals: 18;
246
+ } | {
247
+ readonly kind: "erc20";
248
+ readonly address: `0x${string}`;
249
+ readonly symbol: string;
250
+ readonly decimals: number;
251
+ };
252
+ } | {
253
+ readonly status: "unavailable";
254
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
255
+ readonly protocol: "v1" | "v2";
256
+ readonly reason: "NAME_UNAVAILABLE";
257
+ } | {
258
+ readonly status: "payment-token-required";
259
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
260
+ readonly protocol: "v1" | "v2";
261
+ } | {
262
+ readonly status: "unsupported-payment-token";
263
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
264
+ readonly protocol: "v1" | "v2";
265
+ readonly paymentToken: `0x${string}`;
266
+ };
267
+ readonly commitment: {
268
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
269
+ readonly protocol: "v1" | "v2";
270
+ readonly registrar: `0x${string}`;
271
+ readonly commitment: `0x${string}`;
272
+ };
273
+ readonly commitmentStatus: {
274
+ readonly status: "not-found";
275
+ readonly protocol: "v1" | "v2";
276
+ } | {
277
+ readonly status: "pending";
278
+ readonly protocol: "v1" | "v2";
279
+ readonly submittedAt: bigint;
280
+ readonly readyAt: bigint;
281
+ readonly expiresAt: bigint;
282
+ readonly remainingSeconds: bigint;
283
+ } | {
284
+ readonly status: "ready";
285
+ readonly protocol: "v1" | "v2";
286
+ readonly submittedAt: bigint;
287
+ readonly readyAt: bigint;
288
+ readonly expiresAt: bigint;
289
+ readonly remainingSeconds: bigint;
290
+ } | {
291
+ readonly status: "expired";
292
+ readonly protocol: "v1" | "v2";
293
+ readonly submittedAt: bigint;
294
+ readonly readyAt: bigint;
295
+ readonly expiresAt: bigint;
296
+ };
297
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").GetRegistrationPlanParameters, {
298
+ readonly status: "unavailable";
299
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
300
+ } | {
301
+ readonly status: "payment-token-required";
302
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
303
+ } | {
304
+ readonly status: "unsupported-payment-token";
305
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
306
+ readonly paymentToken: `0x${string}`;
307
+ } | {
308
+ readonly status: "ready" | "commitment-required" | "commitment-pending" | "commitment-expired";
309
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
310
+ readonly parameters: {
311
+ readonly protocol: "v1";
312
+ readonly registrar: `0x${string}`;
313
+ readonly priceOracle: `0x${string}`;
314
+ readonly minimumRegistrationDuration: bigint;
315
+ readonly minimumRenewalDuration: bigint;
316
+ readonly minimumCommitmentAge: bigint;
317
+ readonly maximumCommitmentAge: bigint;
318
+ readonly payment: {
319
+ readonly kind: "native";
320
+ };
321
+ } | {
322
+ readonly protocol: "v2";
323
+ readonly registrar: `0x${string}`;
324
+ readonly priceOracle: `0x${string}`;
325
+ readonly minimumRegistrationDuration: bigint;
326
+ readonly minimumRenewalDuration: bigint;
327
+ readonly minimumCommitmentAge: bigint;
328
+ readonly maximumCommitmentAge: bigint;
329
+ readonly payment: {
330
+ readonly kind: "erc20";
331
+ readonly enumerable: false;
332
+ };
333
+ };
334
+ readonly price: {
335
+ readonly status: "available";
336
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
337
+ readonly protocol: "v1" | "v2";
338
+ readonly registrar: `0x${string}`;
339
+ readonly duration: bigint;
340
+ readonly base: bigint;
341
+ readonly premium: bigint;
342
+ readonly total: bigint;
343
+ readonly currency: {
344
+ readonly kind: "native";
345
+ readonly symbol: "ETH";
346
+ readonly decimals: 18;
347
+ } | {
348
+ readonly kind: "erc20";
349
+ readonly address: `0x${string}`;
350
+ readonly symbol: string;
351
+ readonly decimals: number;
352
+ };
353
+ } | {
354
+ readonly status: "unavailable";
355
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
356
+ readonly protocol: "v1" | "v2";
357
+ readonly reason: "NAME_UNAVAILABLE";
358
+ } | {
359
+ readonly status: "payment-token-required";
360
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
361
+ readonly protocol: "v1" | "v2";
362
+ } | {
363
+ readonly status: "unsupported-payment-token";
364
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
365
+ readonly protocol: "v1" | "v2";
366
+ readonly paymentToken: `0x${string}`;
367
+ };
368
+ readonly commitment: {
369
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
370
+ readonly protocol: "v1" | "v2";
371
+ readonly registrar: `0x${string}`;
372
+ readonly commitment: `0x${string}`;
373
+ };
374
+ readonly commitmentStatus: {
375
+ readonly status: "not-found";
376
+ readonly protocol: "v1" | "v2";
377
+ } | {
378
+ readonly status: "pending";
379
+ readonly protocol: "v1" | "v2";
380
+ readonly submittedAt: bigint;
381
+ readonly readyAt: bigint;
382
+ readonly expiresAt: bigint;
383
+ readonly remainingSeconds: bigint;
384
+ } | {
385
+ readonly status: "ready";
386
+ readonly protocol: "v1" | "v2";
387
+ readonly submittedAt: bigint;
388
+ readonly readyAt: bigint;
389
+ readonly expiresAt: bigint;
390
+ readonly remainingSeconds: bigint;
391
+ } | {
392
+ readonly status: "expired";
393
+ readonly protocol: "v1" | "v2";
394
+ readonly submittedAt: bigint;
395
+ readonly readyAt: bigint;
396
+ readonly expiresAt: bigint;
397
+ };
398
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
399
+ declare const useRegistrationPlanSuspense: <Selected = {
400
+ readonly status: "unavailable";
401
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
402
+ } | {
403
+ readonly status: "payment-token-required";
404
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
405
+ } | {
406
+ readonly status: "unsupported-payment-token";
407
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
408
+ readonly paymentToken: `0x${string}`;
409
+ } | {
410
+ readonly status: "ready" | "commitment-required" | "commitment-pending" | "commitment-expired";
411
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
412
+ readonly parameters: {
413
+ readonly protocol: "v1";
414
+ readonly registrar: `0x${string}`;
415
+ readonly priceOracle: `0x${string}`;
416
+ readonly minimumRegistrationDuration: bigint;
417
+ readonly minimumRenewalDuration: bigint;
418
+ readonly minimumCommitmentAge: bigint;
419
+ readonly maximumCommitmentAge: bigint;
420
+ readonly payment: {
421
+ readonly kind: "native";
422
+ };
423
+ } | {
424
+ readonly protocol: "v2";
425
+ readonly registrar: `0x${string}`;
426
+ readonly priceOracle: `0x${string}`;
427
+ readonly minimumRegistrationDuration: bigint;
428
+ readonly minimumRenewalDuration: bigint;
429
+ readonly minimumCommitmentAge: bigint;
430
+ readonly maximumCommitmentAge: bigint;
431
+ readonly payment: {
432
+ readonly kind: "erc20";
433
+ readonly enumerable: false;
434
+ };
435
+ };
436
+ readonly price: {
437
+ readonly status: "available";
438
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
439
+ readonly protocol: "v1" | "v2";
440
+ readonly registrar: `0x${string}`;
441
+ readonly duration: bigint;
442
+ readonly base: bigint;
443
+ readonly premium: bigint;
444
+ readonly total: bigint;
445
+ readonly currency: {
446
+ readonly kind: "native";
447
+ readonly symbol: "ETH";
448
+ readonly decimals: 18;
449
+ } | {
450
+ readonly kind: "erc20";
451
+ readonly address: `0x${string}`;
452
+ readonly symbol: string;
453
+ readonly decimals: number;
454
+ };
455
+ } | {
456
+ readonly status: "unavailable";
457
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
458
+ readonly protocol: "v1" | "v2";
459
+ readonly reason: "NAME_UNAVAILABLE";
460
+ } | {
461
+ readonly status: "payment-token-required";
462
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
463
+ readonly protocol: "v1" | "v2";
464
+ } | {
465
+ readonly status: "unsupported-payment-token";
466
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
467
+ readonly protocol: "v1" | "v2";
468
+ readonly paymentToken: `0x${string}`;
469
+ };
470
+ readonly commitment: {
471
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
472
+ readonly protocol: "v1" | "v2";
473
+ readonly registrar: `0x${string}`;
474
+ readonly commitment: `0x${string}`;
475
+ };
476
+ readonly commitmentStatus: {
477
+ readonly status: "not-found";
478
+ readonly protocol: "v1" | "v2";
479
+ } | {
480
+ readonly status: "pending";
481
+ readonly protocol: "v1" | "v2";
482
+ readonly submittedAt: bigint;
483
+ readonly readyAt: bigint;
484
+ readonly expiresAt: bigint;
485
+ readonly remainingSeconds: bigint;
486
+ } | {
487
+ readonly status: "ready";
488
+ readonly protocol: "v1" | "v2";
489
+ readonly submittedAt: bigint;
490
+ readonly readyAt: bigint;
491
+ readonly expiresAt: bigint;
492
+ readonly remainingSeconds: bigint;
493
+ } | {
494
+ readonly status: "expired";
495
+ readonly protocol: "v1" | "v2";
496
+ readonly submittedAt: bigint;
497
+ readonly readyAt: bigint;
498
+ readonly expiresAt: bigint;
499
+ };
500
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetRegistrationPlanParameters, {
501
+ readonly status: "unavailable";
502
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
503
+ } | {
504
+ readonly status: "payment-token-required";
505
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
506
+ } | {
507
+ readonly status: "unsupported-payment-token";
508
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
509
+ readonly paymentToken: `0x${string}`;
510
+ } | {
511
+ readonly status: "ready" | "commitment-required" | "commitment-pending" | "commitment-expired";
512
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
513
+ readonly parameters: {
514
+ readonly protocol: "v1";
515
+ readonly registrar: `0x${string}`;
516
+ readonly priceOracle: `0x${string}`;
517
+ readonly minimumRegistrationDuration: bigint;
518
+ readonly minimumRenewalDuration: bigint;
519
+ readonly minimumCommitmentAge: bigint;
520
+ readonly maximumCommitmentAge: bigint;
521
+ readonly payment: {
522
+ readonly kind: "native";
523
+ };
524
+ } | {
525
+ readonly protocol: "v2";
526
+ readonly registrar: `0x${string}`;
527
+ readonly priceOracle: `0x${string}`;
528
+ readonly minimumRegistrationDuration: bigint;
529
+ readonly minimumRenewalDuration: bigint;
530
+ readonly minimumCommitmentAge: bigint;
531
+ readonly maximumCommitmentAge: bigint;
532
+ readonly payment: {
533
+ readonly kind: "erc20";
534
+ readonly enumerable: false;
535
+ };
536
+ };
537
+ readonly price: {
538
+ readonly status: "available";
539
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
540
+ readonly protocol: "v1" | "v2";
541
+ readonly registrar: `0x${string}`;
542
+ readonly duration: bigint;
543
+ readonly base: bigint;
544
+ readonly premium: bigint;
545
+ readonly total: bigint;
546
+ readonly currency: {
547
+ readonly kind: "native";
548
+ readonly symbol: "ETH";
549
+ readonly decimals: 18;
550
+ } | {
551
+ readonly kind: "erc20";
552
+ readonly address: `0x${string}`;
553
+ readonly symbol: string;
554
+ readonly decimals: number;
555
+ };
556
+ } | {
557
+ readonly status: "unavailable";
558
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
559
+ readonly protocol: "v1" | "v2";
560
+ readonly reason: "NAME_UNAVAILABLE";
561
+ } | {
562
+ readonly status: "payment-token-required";
563
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
564
+ readonly protocol: "v1" | "v2";
565
+ } | {
566
+ readonly status: "unsupported-payment-token";
567
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
568
+ readonly protocol: "v1" | "v2";
569
+ readonly paymentToken: `0x${string}`;
570
+ };
571
+ readonly commitment: {
572
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
573
+ readonly protocol: "v1" | "v2";
574
+ readonly registrar: `0x${string}`;
575
+ readonly commitment: `0x${string}`;
576
+ };
577
+ readonly commitmentStatus: {
578
+ readonly status: "not-found";
579
+ readonly protocol: "v1" | "v2";
580
+ } | {
581
+ readonly status: "pending";
582
+ readonly protocol: "v1" | "v2";
583
+ readonly submittedAt: bigint;
584
+ readonly readyAt: bigint;
585
+ readonly expiresAt: bigint;
586
+ readonly remainingSeconds: bigint;
587
+ } | {
588
+ readonly status: "ready";
589
+ readonly protocol: "v1" | "v2";
590
+ readonly submittedAt: bigint;
591
+ readonly readyAt: bigint;
592
+ readonly expiresAt: bigint;
593
+ readonly remainingSeconds: bigint;
594
+ } | {
595
+ readonly status: "expired";
596
+ readonly protocol: "v1" | "v2";
597
+ readonly submittedAt: bigint;
598
+ readonly readyAt: bigint;
599
+ readonly expiresAt: bigint;
600
+ };
601
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
602
+ declare const useRegistrationPrice: <Selected = {
603
+ readonly status: "available";
604
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
605
+ readonly protocol: "v1" | "v2";
606
+ readonly registrar: `0x${string}`;
607
+ readonly duration: bigint;
608
+ readonly base: bigint;
609
+ readonly premium: bigint;
610
+ readonly total: bigint;
611
+ readonly currency: {
612
+ readonly kind: "native";
613
+ readonly symbol: "ETH";
614
+ readonly decimals: 18;
615
+ } | {
616
+ readonly kind: "erc20";
617
+ readonly address: `0x${string}`;
618
+ readonly symbol: string;
619
+ readonly decimals: number;
620
+ };
621
+ } | {
622
+ readonly status: "unavailable";
623
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
624
+ readonly protocol: "v1" | "v2";
625
+ readonly reason: "NAME_UNAVAILABLE";
626
+ } | {
627
+ readonly status: "payment-token-required";
628
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
629
+ readonly protocol: "v1" | "v2";
630
+ } | {
631
+ readonly status: "unsupported-payment-token";
632
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
633
+ readonly protocol: "v1" | "v2";
634
+ readonly paymentToken: `0x${string}`;
635
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").GetRegistrationPriceParameters, {
636
+ readonly status: "available";
637
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
638
+ readonly protocol: "v1" | "v2";
639
+ readonly registrar: `0x${string}`;
640
+ readonly duration: bigint;
641
+ readonly base: bigint;
642
+ readonly premium: bigint;
643
+ readonly total: bigint;
644
+ readonly currency: {
645
+ readonly kind: "native";
646
+ readonly symbol: "ETH";
647
+ readonly decimals: 18;
648
+ } | {
649
+ readonly kind: "erc20";
650
+ readonly address: `0x${string}`;
651
+ readonly symbol: string;
652
+ readonly decimals: number;
653
+ };
654
+ } | {
655
+ readonly status: "unavailable";
656
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
657
+ readonly protocol: "v1" | "v2";
658
+ readonly reason: "NAME_UNAVAILABLE";
659
+ } | {
660
+ readonly status: "payment-token-required";
661
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
662
+ readonly protocol: "v1" | "v2";
663
+ } | {
664
+ readonly status: "unsupported-payment-token";
665
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
666
+ readonly protocol: "v1" | "v2";
667
+ readonly paymentToken: `0x${string}`;
668
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
669
+ declare const useRegistrationPriceSuspense: <Selected = {
670
+ readonly status: "available";
671
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
672
+ readonly protocol: "v1" | "v2";
673
+ readonly registrar: `0x${string}`;
674
+ readonly duration: bigint;
675
+ readonly base: bigint;
676
+ readonly premium: bigint;
677
+ readonly total: bigint;
678
+ readonly currency: {
679
+ readonly kind: "native";
680
+ readonly symbol: "ETH";
681
+ readonly decimals: 18;
682
+ } | {
683
+ readonly kind: "erc20";
684
+ readonly address: `0x${string}`;
685
+ readonly symbol: string;
686
+ readonly decimals: number;
687
+ };
688
+ } | {
689
+ readonly status: "unavailable";
690
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
691
+ readonly protocol: "v1" | "v2";
692
+ readonly reason: "NAME_UNAVAILABLE";
693
+ } | {
694
+ readonly status: "payment-token-required";
695
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
696
+ readonly protocol: "v1" | "v2";
697
+ } | {
698
+ readonly status: "unsupported-payment-token";
699
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
700
+ readonly protocol: "v1" | "v2";
701
+ readonly paymentToken: `0x${string}`;
702
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetRegistrationPriceParameters, {
703
+ readonly status: "available";
704
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
705
+ readonly protocol: "v1" | "v2";
706
+ readonly registrar: `0x${string}`;
707
+ readonly duration: bigint;
708
+ readonly base: bigint;
709
+ readonly premium: bigint;
710
+ readonly total: bigint;
711
+ readonly currency: {
712
+ readonly kind: "native";
713
+ readonly symbol: "ETH";
714
+ readonly decimals: 18;
715
+ } | {
716
+ readonly kind: "erc20";
717
+ readonly address: `0x${string}`;
718
+ readonly symbol: string;
719
+ readonly decimals: number;
720
+ };
721
+ } | {
722
+ readonly status: "unavailable";
723
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
724
+ readonly protocol: "v1" | "v2";
725
+ readonly reason: "NAME_UNAVAILABLE";
726
+ } | {
727
+ readonly status: "payment-token-required";
728
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
729
+ readonly protocol: "v1" | "v2";
730
+ } | {
731
+ readonly status: "unsupported-payment-token";
732
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
733
+ readonly protocol: "v1" | "v2";
734
+ readonly paymentToken: `0x${string}`;
735
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
736
+ declare const useRenewalPrice: <Selected = {
737
+ readonly status: "payment-token-required";
738
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
739
+ readonly protocol: "v1" | "v2";
740
+ } | {
741
+ readonly status: "unsupported-payment-token";
742
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
743
+ readonly protocol: "v1" | "v2";
744
+ readonly paymentToken: `0x${string}`;
745
+ } | {
746
+ readonly status: "renewable";
747
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
748
+ readonly protocol: "v1" | "v2";
749
+ readonly route: "v1-controller" | "v2-registrar" | "v1-renewer";
750
+ readonly renewer: `0x${string}`;
751
+ readonly duration: bigint;
752
+ readonly price: bigint;
753
+ readonly currency: {
754
+ readonly kind: "native";
755
+ readonly symbol: "ETH";
756
+ readonly decimals: 18;
757
+ } | {
758
+ readonly kind: "erc20";
759
+ readonly address: `0x${string}`;
760
+ readonly symbol: string;
761
+ readonly decimals: number;
762
+ };
763
+ } | {
764
+ readonly status: "not-renewable";
765
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
766
+ readonly protocol: "v1" | "v2";
767
+ readonly reason: "NAME_NOT_RENEWABLE";
768
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").GetRegistrationPriceParameters, {
769
+ readonly status: "payment-token-required";
770
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
771
+ readonly protocol: "v1" | "v2";
772
+ } | {
773
+ readonly status: "unsupported-payment-token";
774
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
775
+ readonly protocol: "v1" | "v2";
776
+ readonly paymentToken: `0x${string}`;
777
+ } | {
778
+ readonly status: "renewable";
779
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
780
+ readonly protocol: "v1" | "v2";
781
+ readonly route: "v1-controller" | "v2-registrar" | "v1-renewer";
782
+ readonly renewer: `0x${string}`;
783
+ readonly duration: bigint;
784
+ readonly price: bigint;
785
+ readonly currency: {
786
+ readonly kind: "native";
787
+ readonly symbol: "ETH";
788
+ readonly decimals: 18;
789
+ } | {
790
+ readonly kind: "erc20";
791
+ readonly address: `0x${string}`;
792
+ readonly symbol: string;
793
+ readonly decimals: number;
794
+ };
795
+ } | {
796
+ readonly status: "not-renewable";
797
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
798
+ readonly protocol: "v1" | "v2";
799
+ readonly reason: "NAME_NOT_RENEWABLE";
800
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
801
+ declare const useRenewalPriceSuspense: <Selected = {
802
+ readonly status: "payment-token-required";
803
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
804
+ readonly protocol: "v1" | "v2";
805
+ } | {
806
+ readonly status: "unsupported-payment-token";
807
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
808
+ readonly protocol: "v1" | "v2";
809
+ readonly paymentToken: `0x${string}`;
810
+ } | {
811
+ readonly status: "renewable";
812
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
813
+ readonly protocol: "v1" | "v2";
814
+ readonly route: "v1-controller" | "v2-registrar" | "v1-renewer";
815
+ readonly renewer: `0x${string}`;
816
+ readonly duration: bigint;
817
+ readonly price: bigint;
818
+ readonly currency: {
819
+ readonly kind: "native";
820
+ readonly symbol: "ETH";
821
+ readonly decimals: 18;
822
+ } | {
823
+ readonly kind: "erc20";
824
+ readonly address: `0x${string}`;
825
+ readonly symbol: string;
826
+ readonly decimals: number;
827
+ };
828
+ } | {
829
+ readonly status: "not-renewable";
830
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
831
+ readonly protocol: "v1" | "v2";
832
+ readonly reason: "NAME_NOT_RENEWABLE";
833
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").GetRegistrationPriceParameters, {
834
+ readonly status: "payment-token-required";
835
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
836
+ readonly protocol: "v1" | "v2";
837
+ } | {
838
+ readonly status: "unsupported-payment-token";
839
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
840
+ readonly protocol: "v1" | "v2";
841
+ readonly paymentToken: `0x${string}`;
842
+ } | {
843
+ readonly status: "renewable";
844
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
845
+ readonly protocol: "v1" | "v2";
846
+ readonly route: "v1-controller" | "v2-registrar" | "v1-renewer";
847
+ readonly renewer: `0x${string}`;
848
+ readonly duration: bigint;
849
+ readonly price: bigint;
850
+ readonly currency: {
851
+ readonly kind: "native";
852
+ readonly symbol: "ETH";
853
+ readonly decimals: 18;
854
+ } | {
855
+ readonly kind: "erc20";
856
+ readonly address: `0x${string}`;
857
+ readonly symbol: string;
858
+ readonly decimals: number;
859
+ };
860
+ } | {
861
+ readonly status: "not-renewable";
862
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
863
+ readonly protocol: "v1" | "v2";
864
+ readonly reason: "NAME_NOT_RENEWABLE";
865
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
866
+ declare const useIsPaymentTokenSupported: <Selected = {
867
+ readonly protocol: "v1";
868
+ readonly supported: false;
869
+ readonly reason: "NATIVE_PAYMENT_ONLY";
870
+ } | {
871
+ readonly protocol: "v2";
872
+ readonly supported: false;
873
+ readonly token: `0x${string}`;
874
+ readonly reason: "PAYMENT_TOKEN_NOT_SUPPORTED";
875
+ } | {
876
+ readonly protocol: "v2";
877
+ readonly supported: true;
878
+ readonly token: `0x${string}`;
879
+ readonly symbol: string;
880
+ readonly decimals: number;
881
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").IsPaymentTokenSupportedParameters, {
882
+ readonly protocol: "v1";
883
+ readonly supported: false;
884
+ readonly reason: "NATIVE_PAYMENT_ONLY";
885
+ } | {
886
+ readonly protocol: "v2";
887
+ readonly supported: false;
888
+ readonly token: `0x${string}`;
889
+ readonly reason: "PAYMENT_TOKEN_NOT_SUPPORTED";
890
+ } | {
891
+ readonly protocol: "v2";
892
+ readonly supported: true;
893
+ readonly token: `0x${string}`;
894
+ readonly symbol: string;
895
+ readonly decimals: number;
896
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
897
+ declare const useIsPaymentTokenSupportedSuspense: <Selected = {
898
+ readonly protocol: "v1";
899
+ readonly supported: false;
900
+ readonly reason: "NATIVE_PAYMENT_ONLY";
901
+ } | {
902
+ readonly protocol: "v2";
903
+ readonly supported: false;
904
+ readonly token: `0x${string}`;
905
+ readonly reason: "PAYMENT_TOKEN_NOT_SUPPORTED";
906
+ } | {
907
+ readonly protocol: "v2";
908
+ readonly supported: true;
909
+ readonly token: `0x${string}`;
910
+ readonly symbol: string;
911
+ readonly decimals: number;
912
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").IsPaymentTokenSupportedParameters, {
913
+ readonly protocol: "v1";
914
+ readonly supported: false;
915
+ readonly reason: "NATIVE_PAYMENT_ONLY";
916
+ } | {
917
+ readonly protocol: "v2";
918
+ readonly supported: false;
919
+ readonly token: `0x${string}`;
920
+ readonly reason: "PAYMENT_TOKEN_NOT_SUPPORTED";
921
+ } | {
922
+ readonly protocol: "v2";
923
+ readonly supported: true;
924
+ readonly token: `0x${string}`;
925
+ readonly symbol: string;
926
+ readonly decimals: number;
927
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
928
+ declare const useRegistrationCommitment: <Selected = {
929
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
930
+ readonly protocol: "v1" | "v2";
931
+ readonly registrar: `0x${string}`;
932
+ readonly commitment: `0x${string}`;
933
+ }>(input: UseEnsQueryParameters<import("@ensforge/core").MakeRegistrationCommitmentParameters, {
934
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
935
+ readonly protocol: "v1" | "v2";
936
+ readonly registrar: `0x${string}`;
937
+ readonly commitment: `0x${string}`;
938
+ }, Selected>) => EnsQueryResult<Selected, import("@ensforge/core").GetCommitmentStatusError>;
939
+ declare const useRegistrationCommitmentSuspense: <Selected = {
940
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
941
+ readonly protocol: "v1" | "v2";
942
+ readonly registrar: `0x${string}`;
943
+ readonly commitment: `0x${string}`;
944
+ }>(input: UseEnsSuspenseQueryParameters<import("@ensforge/core").MakeRegistrationCommitmentParameters, {
945
+ readonly name: string & import("effect/Brand").Brand<"NormalizedName">;
946
+ readonly protocol: "v1" | "v2";
947
+ readonly registrar: `0x${string}`;
948
+ readonly commitment: `0x${string}`;
949
+ }, Selected>) => EnsSuspenseQueryResult<Selected>;
950
+ declare const useApprovePaymentToken: (options?: EnsMutationOptions<import("@ensforge/core").ApprovePaymentTokenParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").ApprovePaymentTokenParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
951
+ declare const useApproveRenewalPayment: (options?: EnsMutationOptions<import("@ensforge/core").ApproveRenewalPaymentParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").ApproveRenewalPaymentParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
952
+ declare const useCommitName: (options?: EnsMutationOptions<import("@ensforge/core").CommitNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").CommitNameParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
953
+ declare const useCompleteRegistration: (options?: EnsMutationOptions<import("@ensforge/core").CompleteRegistrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").CompleteRegistrationParameters, import("@ensforge/core").CallExecutionResult, import("@ensforge/core").WriteError>;
954
+ declare const useRegisterName: (options?: EnsMutationOptions<import("@ensforge/core").RegisterNameParameters, import("@ensforge/core").RegisterNameResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").RegisterNameParameters, import("@ensforge/core").RegisterNameResult, import("@ensforge/core").WriteError>;
955
+ declare const useRegisterNames: (options?: EnsMutationOptions<import("@ensforge/core").RegisterNamesParameters, import("@ensforge/core").RegisterNamesResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").RegisterNamesParameters, import("@ensforge/core").RegisterNamesResult, import("@ensforge/core").WriteError>;
956
+ declare const useRenewName: (options?: EnsMutationOptions<import("@ensforge/core").RenewNameParameters, import("@ensforge/core").RenewNameResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").RenewNameParameters, import("@ensforge/core").RenewNameResult, import("@ensforge/core").WriteError>;
957
+ declare const useRenewNames: (options?: EnsMutationOptions<import("@ensforge/core").RenewNamesParameters, import("@ensforge/core").RenewNamesResult, import("@ensforge/core").WriteError>) => EnsMutationResult<import("@ensforge/core").RenewNamesParameters, import("@ensforge/core").RenewNamesResult, import("@ensforge/core").WriteError>;
958
+ //#endregion
959
+ export { useApprovePaymentToken, useApproveRenewalPayment, useCommitName, useCommitmentStatus, useCommitmentStatusSuspense, useCompleteRegistration, useIsPaymentTokenSupported, useIsPaymentTokenSupportedSuspense, useRegisterName, useRegisterNames, useRegistrationCommitment, useRegistrationCommitmentSuspense, useRegistrationParameters, useRegistrationParametersSuspense, useRegistrationPlan, useRegistrationPlanSuspense, useRegistrationPrice, useRegistrationPriceSuspense, useRenewName, useRenewNames, useRenewalPrice, useRenewalPriceSuspense };
960
+ //# sourceMappingURL=registration.d.ts.map