[TS] Update auto-generated bindings for 0.0.105.0
[ldk-java] / ts / index.mts
1 import { initializeWasmFetch, initializeWasmFromUint8Array } from './bindings.mjs';
2 /** Initializes the WASM backend by calling `fetch()` on the given URI - Browser only */
3 export async function initializeWasmWebFetch(uri: string) {
4         await initializeWasmFetch(uri);
5 }
6 /** Initializes the WASM backend given a Uint8Array of the .wasm binary file - Browser or Node.JS */
7 export async function initializeWasmFromBinary(bin: Uint8Array) {
8         await initializeWasmFromUint8Array(bin);
9 }
10
11 export * from './structs/TxOut.mjs';
12 export * from './enums/AccessError.mjs';
13 export * from './enums/COption_NoneZ.mjs';
14 export * from './enums/ChannelMonitorUpdateErr.mjs';
15 export * from './enums/ConfirmationTarget.mjs';
16 export * from './enums/CreationError.mjs';
17 export * from './enums/Currency.mjs';
18 export * from './enums/Level.mjs';
19 export * from './enums/Network.mjs';
20 export * from './enums/Recipient.mjs';
21 export * from './enums/Secp256k1Error.mjs';
22 export * from './enums/SemanticError.mjs';
23 export * from './enums/SiPrefix.mjs';
24 export * from './structs/Result_NoneNoneZ.mjs';
25 export * from './structs/CounterpartyCommitmentSecrets.mjs';
26 export * from './structs/DecodeError.mjs';
27 export * from './structs/Result_CounterpartyCommitmentSecretsDecodeErrorZ.mjs';
28 export * from './structs/Result_SecretKeyErrorZ.mjs';
29 export * from './structs/Result_PublicKeyErrorZ.mjs';
30 export * from './structs/TxCreationKeys.mjs';
31 export * from './structs/Result_TxCreationKeysDecodeErrorZ.mjs';
32 export * from './structs/ChannelPublicKeys.mjs';
33 export * from './structs/Result_ChannelPublicKeysDecodeErrorZ.mjs';
34 export * from './structs/Result_TxCreationKeysErrorZ.mjs';
35 export * from './structs/Option_u32Z.mjs';
36 export * from './structs/HTLCOutputInCommitment.mjs';
37 export * from './structs/Result_HTLCOutputInCommitmentDecodeErrorZ.mjs';
38 export * from './structs/CounterpartyChannelTransactionParameters.mjs';
39 export * from './structs/Result_CounterpartyChannelTransactionParametersDecodeErrorZ.mjs';
40 export * from './structs/ChannelTransactionParameters.mjs';
41 export * from './structs/Result_ChannelTransactionParametersDecodeErrorZ.mjs';
42 export * from './structs/HolderCommitmentTransaction.mjs';
43 export * from './structs/Result_HolderCommitmentTransactionDecodeErrorZ.mjs';
44 export * from './structs/BuiltCommitmentTransaction.mjs';
45 export * from './structs/Result_BuiltCommitmentTransactionDecodeErrorZ.mjs';
46 export * from './structs/TrustedClosingTransaction.mjs';
47 export * from './structs/Result_TrustedClosingTransactionNoneZ.mjs';
48 export * from './structs/CommitmentTransaction.mjs';
49 export * from './structs/Result_CommitmentTransactionDecodeErrorZ.mjs';
50 export * from './structs/TrustedCommitmentTransaction.mjs';
51 export * from './structs/Result_TrustedCommitmentTransactionNoneZ.mjs';
52 export * from './structs/Result_CVec_SignatureZNoneZ.mjs';
53 export * from './structs/ShutdownScript.mjs';
54 export * from './structs/Result_ShutdownScriptDecodeErrorZ.mjs';
55 export * from './structs/InvalidShutdownScript.mjs';
56 export * from './structs/Result_ShutdownScriptInvalidShutdownScriptZ.mjs';
57 export * from './structs/RouteHop.mjs';
58 export * from './structs/Result_RouteHopDecodeErrorZ.mjs';
59 export * from './structs/Route.mjs';
60 export * from './structs/Result_RouteDecodeErrorZ.mjs';
61 export * from './structs/RouteParameters.mjs';
62 export * from './structs/Result_RouteParametersDecodeErrorZ.mjs';
63 export * from './structs/RouteHint.mjs';
64 export * from './structs/Option_u64Z.mjs';
65 export * from './structs/PaymentParameters.mjs';
66 export * from './structs/Result_PaymentParametersDecodeErrorZ.mjs';
67 export * from './structs/RouteHintHop.mjs';
68 export * from './structs/Result_RouteHintDecodeErrorZ.mjs';
69 export * from './structs/Result_RouteHintHopDecodeErrorZ.mjs';
70 export * from './structs/ChannelDetails.mjs';
71 export * from './structs/LightningError.mjs';
72 export * from './structs/Result_RouteLightningErrorZ.mjs';
73 export * from './structs/Result_TxOutAccessErrorZ.mjs';
74 export * from './structs/TwoTuple_usizeTransactionZ.mjs';
75 export * from './structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
76 export * from './structs/HTLCUpdate.mjs';
77 export * from './structs/OutPoint.mjs';
78 export * from './structs/MonitorEvent.mjs';
79 export * from './structs/Option_C2Tuple_usizeTransactionZZ.mjs';
80 export * from './structs/ClosureReason.mjs';
81 export * from './structs/Option_ClosureReasonZ.mjs';
82 export * from './structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
83 export * from './structs/ChannelUpdate.mjs';
84 export * from './structs/NetworkUpdate.mjs';
85 export * from './structs/Option_NetworkUpdateZ.mjs';
86 export * from './structs/DelayedPaymentOutputDescriptor.mjs';
87 export * from './structs/StaticPaymentOutputDescriptor.mjs';
88 export * from './structs/SpendableOutputDescriptor.mjs';
89 export * from './structs/PaymentPurpose.mjs';
90 export * from './structs/Event.mjs';
91 export * from './structs/Option_EventZ.mjs';
92 export * from './structs/Result_COption_EventZDecodeErrorZ.mjs';
93 export * from './structs/AcceptChannel.mjs';
94 export * from './structs/OpenChannel.mjs';
95 export * from './structs/FundingCreated.mjs';
96 export * from './structs/FundingSigned.mjs';
97 export * from './structs/FundingLocked.mjs';
98 export * from './structs/AnnouncementSignatures.mjs';
99 export * from './structs/CommitmentUpdate.mjs';
100 export * from './structs/RevokeAndACK.mjs';
101 export * from './structs/ClosingSigned.mjs';
102 export * from './structs/Shutdown.mjs';
103 export * from './structs/ChannelReestablish.mjs';
104 export * from './structs/ChannelAnnouncement.mjs';
105 export * from './structs/NodeAnnouncement.mjs';
106 export * from './structs/ErrorMessage.mjs';
107 export * from './structs/WarningMessage.mjs';
108 export * from './structs/ErrorAction.mjs';
109 export * from './structs/QueryChannelRange.mjs';
110 export * from './structs/QueryShortChannelIds.mjs';
111 export * from './structs/ReplyChannelRange.mjs';
112 export * from './structs/MessageSendEvent.mjs';
113 export * from './structs/FixedPenaltyScorer.mjs';
114 export * from './structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
115 export * from './structs/ScoringParameters.mjs';
116 export * from './structs/Result_ScoringParametersDecodeErrorZ.mjs';
117 export * from './structs/Scorer.mjs';
118 export * from './structs/Result_ScorerDecodeErrorZ.mjs';
119 export * from './structs/ProbabilisticScoringParameters.mjs';
120 export * from './structs/Result_ProbabilisticScoringParametersDecodeErrorZ.mjs';
121 export * from './structs/InitFeatures.mjs';
122 export * from './structs/Result_InitFeaturesDecodeErrorZ.mjs';
123 export * from './structs/ChannelFeatures.mjs';
124 export * from './structs/Result_ChannelFeaturesDecodeErrorZ.mjs';
125 export * from './structs/NodeFeatures.mjs';
126 export * from './structs/Result_NodeFeaturesDecodeErrorZ.mjs';
127 export * from './structs/InvoiceFeatures.mjs';
128 export * from './structs/Result_InvoiceFeaturesDecodeErrorZ.mjs';
129 export * from './structs/ChannelTypeFeatures.mjs';
130 export * from './structs/Result_ChannelTypeFeaturesDecodeErrorZ.mjs';
131 export * from './structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.mjs';
132 export * from './structs/Result_StaticPaymentOutputDescriptorDecodeErrorZ.mjs';
133 export * from './structs/Result_SpendableOutputDescriptorDecodeErrorZ.mjs';
134 export * from './structs/TwoTuple_SignatureCVec_SignatureZZ.mjs';
135 export * from './structs/Result_C2Tuple_SignatureCVec_SignatureZZNoneZ.mjs';
136 export * from './structs/Result_SignatureNoneZ.mjs';
137 export * from './structs/TwoTuple_SignatureSignatureZ.mjs';
138 export * from './structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs';
139 export * from './structs/Result_SecretKeyNoneZ.mjs';
140 export * from './structs/ClosingTransaction.mjs';
141 export * from './structs/UnsignedChannelAnnouncement.mjs';
142 export * from './structs/BaseSign.mjs';
143 export * from './structs/Sign.mjs';
144 export * from './structs/Result_SignDecodeErrorZ.mjs';
145 export * from './structs/Result_RecoverableSignatureNoneZ.mjs';
146 export * from './structs/Result_CVec_CVec_u8ZZNoneZ.mjs';
147 export * from './structs/InMemorySigner.mjs';
148 export * from './structs/Result_InMemorySignerDecodeErrorZ.mjs';
149 export * from './structs/Result_TransactionNoneZ.mjs';
150 export * from './structs/Option_u16Z.mjs';
151 export * from './structs/APIError.mjs';
152 export * from './structs/Result_NoneAPIErrorZ.mjs';
153 export * from './structs/Result__u832APIErrorZ.mjs';
154 export * from './structs/PaymentSendFailure.mjs';
155 export * from './structs/Result_PaymentIdPaymentSendFailureZ.mjs';
156 export * from './structs/Result_NonePaymentSendFailureZ.mjs';
157 export * from './structs/TwoTuple_PaymentHashPaymentIdZ.mjs';
158 export * from './structs/Result_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ.mjs';
159 export * from './structs/NetAddress.mjs';
160 export * from './structs/TwoTuple_PaymentHashPaymentSecretZ.mjs';
161 export * from './structs/Result_C2Tuple_PaymentHashPaymentSecretZNoneZ.mjs';
162 export * from './structs/Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ.mjs';
163 export * from './structs/Result_PaymentSecretNoneZ.mjs';
164 export * from './structs/Result_PaymentSecretAPIErrorZ.mjs';
165 export * from './structs/Result_PaymentPreimageAPIErrorZ.mjs';
166 export * from './structs/CounterpartyForwardingInfo.mjs';
167 export * from './structs/Result_CounterpartyForwardingInfoDecodeErrorZ.mjs';
168 export * from './structs/ChannelCounterparty.mjs';
169 export * from './structs/Result_ChannelCounterpartyDecodeErrorZ.mjs';
170 export * from './structs/Result_ChannelDetailsDecodeErrorZ.mjs';
171 export * from './structs/PhantomRouteHints.mjs';
172 export * from './structs/Result_PhantomRouteHintsDecodeErrorZ.mjs';
173 export * from './structs/ChannelMonitor.mjs';
174 export * from './structs/ChannelMonitorUpdate.mjs';
175 export * from './structs/Watch.mjs';
176 export * from './structs/BroadcasterInterface.mjs';
177 export * from './structs/KeysInterface.mjs';
178 export * from './structs/FeeEstimator.mjs';
179 export * from './structs/Record.mjs';
180 export * from './structs/Logger.mjs';
181 export * from './structs/ChannelManager.mjs';
182 export * from './structs/TwoTuple_BlockHashChannelManagerZ.mjs';
183 export * from './structs/Result_C2Tuple_BlockHashChannelManagerZDecodeErrorZ.mjs';
184 export * from './structs/ChannelConfig.mjs';
185 export * from './structs/Result_ChannelConfigDecodeErrorZ.mjs';
186 export * from './structs/Result_OutPointDecodeErrorZ.mjs';
187 export * from './structs/Type.mjs';
188 export * from './structs/Option_TypeZ.mjs';
189 export * from './structs/Result_COption_TypeZDecodeErrorZ.mjs';
190 export * from './structs/PaymentError.mjs';
191 export * from './structs/Result_PaymentIdPaymentErrorZ.mjs';
192 export * from './structs/Result_SiPrefixNoneZ.mjs';
193 export * from './structs/Invoice.mjs';
194 export * from './structs/Result_InvoiceNoneZ.mjs';
195 export * from './structs/SignedRawInvoice.mjs';
196 export * from './structs/Result_SignedRawInvoiceNoneZ.mjs';
197 export * from './structs/RawInvoice.mjs';
198 export * from './structs/InvoiceSignature.mjs';
199 export * from './structs/ThreeTuple_RawInvoice_u832InvoiceSignatureZ.mjs';
200 export * from './structs/PayeePubKey.mjs';
201 export * from './structs/Result_PayeePubKeyErrorZ.mjs';
202 export * from './structs/PrivateRoute.mjs';
203 export * from './structs/PositiveTimestamp.mjs';
204 export * from './structs/Result_PositiveTimestampCreationErrorZ.mjs';
205 export * from './structs/Result_NoneSemanticErrorZ.mjs';
206 export * from './structs/Result_InvoiceSemanticErrorZ.mjs';
207 export * from './structs/Description.mjs';
208 export * from './structs/Result_DescriptionCreationErrorZ.mjs';
209 export * from './structs/Result_PrivateRouteCreationErrorZ.mjs';
210 export * from './structs/Result_StringErrorZ.mjs';
211 export * from './structs/Result_ChannelMonitorUpdateDecodeErrorZ.mjs';
212 export * from './structs/Option_MonitorEventZ.mjs';
213 export * from './structs/Result_COption_MonitorEventZDecodeErrorZ.mjs';
214 export * from './structs/Result_HTLCUpdateDecodeErrorZ.mjs';
215 export * from './structs/TwoTuple_OutPointScriptZ.mjs';
216 export * from './structs/TwoTuple_u32ScriptZ.mjs';
217 export * from './structs/TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ.mjs';
218 export * from './structs/TwoTuple_u32TxOutZ.mjs';
219 export * from './structs/TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ.mjs';
220 export * from './structs/Balance.mjs';
221 export * from './structs/TwoTuple_BlockHashChannelMonitorZ.mjs';
222 export * from './structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs';
223 export * from './structs/Result_NoneLightningErrorZ.mjs';
224 export * from './structs/TwoTuple_PublicKeyTypeZ.mjs';
225 export * from './structs/Result_boolLightningErrorZ.mjs';
226 export * from './structs/ThreeTuple_ChannelAnnouncementChannelUpdateChannelUpdateZ.mjs';
227 export * from './structs/PeerHandleError.mjs';
228 export * from './structs/Result_CVec_u8ZPeerHandleErrorZ.mjs';
229 export * from './structs/Result_NonePeerHandleErrorZ.mjs';
230 export * from './structs/Result_boolPeerHandleErrorZ.mjs';
231 export * from './structs/NodeId.mjs';
232 export * from './structs/Result_NodeIdDecodeErrorZ.mjs';
233 export * from './structs/Result_COption_NetworkUpdateZDecodeErrorZ.mjs';
234 export * from './structs/Access.mjs';
235 export * from './structs/Option_AccessZ.mjs';
236 export * from './structs/ChannelUpdateInfo.mjs';
237 export * from './structs/Result_ChannelUpdateInfoDecodeErrorZ.mjs';
238 export * from './structs/ChannelInfo.mjs';
239 export * from './structs/Result_ChannelInfoDecodeErrorZ.mjs';
240 export * from './structs/RoutingFees.mjs';
241 export * from './structs/Result_RoutingFeesDecodeErrorZ.mjs';
242 export * from './structs/NodeAnnouncementInfo.mjs';
243 export * from './structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
244 export * from './structs/NodeInfo.mjs';
245 export * from './structs/Result_NodeInfoDecodeErrorZ.mjs';
246 export * from './structs/NetworkGraph.mjs';
247 export * from './structs/Result_NetworkGraphDecodeErrorZ.mjs';
248 export * from './structs/Option_CVec_NetAddressZZ.mjs';
249 export * from './structs/Result_NetAddressDecodeErrorZ.mjs';
250 export * from './structs/UpdateAddHTLC.mjs';
251 export * from './structs/UpdateFulfillHTLC.mjs';
252 export * from './structs/UpdateFailHTLC.mjs';
253 export * from './structs/UpdateFailMalformedHTLC.mjs';
254 export * from './structs/Result_AcceptChannelDecodeErrorZ.mjs';
255 export * from './structs/Result_AnnouncementSignaturesDecodeErrorZ.mjs';
256 export * from './structs/Result_ChannelReestablishDecodeErrorZ.mjs';
257 export * from './structs/Result_ClosingSignedDecodeErrorZ.mjs';
258 export * from './structs/ClosingSignedFeeRange.mjs';
259 export * from './structs/Result_ClosingSignedFeeRangeDecodeErrorZ.mjs';
260 export * from './structs/CommitmentSigned.mjs';
261 export * from './structs/Result_CommitmentSignedDecodeErrorZ.mjs';
262 export * from './structs/Result_FundingCreatedDecodeErrorZ.mjs';
263 export * from './structs/Result_FundingSignedDecodeErrorZ.mjs';
264 export * from './structs/Result_FundingLockedDecodeErrorZ.mjs';
265 export * from './structs/Init.mjs';
266 export * from './structs/Result_InitDecodeErrorZ.mjs';
267 export * from './structs/Result_OpenChannelDecodeErrorZ.mjs';
268 export * from './structs/Result_RevokeAndACKDecodeErrorZ.mjs';
269 export * from './structs/Result_ShutdownDecodeErrorZ.mjs';
270 export * from './structs/Result_UpdateFailHTLCDecodeErrorZ.mjs';
271 export * from './structs/Result_UpdateFailMalformedHTLCDecodeErrorZ.mjs';
272 export * from './structs/UpdateFee.mjs';
273 export * from './structs/Result_UpdateFeeDecodeErrorZ.mjs';
274 export * from './structs/Result_UpdateFulfillHTLCDecodeErrorZ.mjs';
275 export * from './structs/Result_UpdateAddHTLCDecodeErrorZ.mjs';
276 export * from './structs/Ping.mjs';
277 export * from './structs/Result_PingDecodeErrorZ.mjs';
278 export * from './structs/Pong.mjs';
279 export * from './structs/Result_PongDecodeErrorZ.mjs';
280 export * from './structs/Result_UnsignedChannelAnnouncementDecodeErrorZ.mjs';
281 export * from './structs/Result_ChannelAnnouncementDecodeErrorZ.mjs';
282 export * from './structs/UnsignedChannelUpdate.mjs';
283 export * from './structs/Result_UnsignedChannelUpdateDecodeErrorZ.mjs';
284 export * from './structs/Result_ChannelUpdateDecodeErrorZ.mjs';
285 export * from './structs/Result_ErrorMessageDecodeErrorZ.mjs';
286 export * from './structs/Result_WarningMessageDecodeErrorZ.mjs';
287 export * from './structs/UnsignedNodeAnnouncement.mjs';
288 export * from './structs/Result_UnsignedNodeAnnouncementDecodeErrorZ.mjs';
289 export * from './structs/Result_NodeAnnouncementDecodeErrorZ.mjs';
290 export * from './structs/Result_QueryShortChannelIdsDecodeErrorZ.mjs';
291 export * from './structs/ReplyShortChannelIdsEnd.mjs';
292 export * from './structs/Result_ReplyShortChannelIdsEndDecodeErrorZ.mjs';
293 export * from './structs/Result_QueryChannelRangeDecodeErrorZ.mjs';
294 export * from './structs/Result_ReplyChannelRangeDecodeErrorZ.mjs';
295 export * from './structs/GossipTimestampFilter.mjs';
296 export * from './structs/Result_GossipTimestampFilterDecodeErrorZ.mjs';
297 export * from './structs/SignOrCreationError.mjs';
298 export * from './structs/Result_InvoiceSignOrCreationErrorZ.mjs';
299 export * from './structs/WatchedOutput.mjs';
300 export * from './structs/Filter.mjs';
301 export * from './structs/Option_FilterZ.mjs';
302 export * from './structs/LockedChannelMonitor.mjs';
303 export * from './structs/Result_LockedChannelMonitorNoneZ.mjs';
304 export * from './structs/MessageSendEventsProvider.mjs';
305 export * from './structs/EventHandler.mjs';
306 export * from './structs/EventsProvider.mjs';
307 export * from './structs/ChannelHandshakeConfig.mjs';
308 export * from './structs/ChannelHandshakeLimits.mjs';
309 export * from './structs/UserConfig.mjs';
310 export * from './structs/BestBlock.mjs';
311 export * from './structs/Listen.mjs';
312 export * from './structs/Confirm.mjs';
313 export * from './structs/MonitorUpdateId.mjs';
314 export * from './structs/Persist.mjs';
315 export * from './structs/ChainMonitor.mjs';
316 export * from './structs/KeysManager.mjs';
317 export * from './structs/PhantomKeysManager.mjs';
318 export * from './structs/ChainParameters.mjs';
319 export * from './structs/ChannelMessageHandler.mjs';
320 export * from './structs/ChannelManagerReadArgs.mjs';
321 export * from './structs/DataLossProtect.mjs';
322 export * from './structs/RoutingMessageHandler.mjs';
323 export * from './structs/CustomMessageReader.mjs';
324 export * from './structs/CustomMessageHandler.mjs';
325 export * from './structs/IgnoringMessageHandler.mjs';
326 export * from './structs/ErroringMessageHandler.mjs';
327 export * from './structs/MessageHandler.mjs';
328 export * from './structs/SocketDescriptor.mjs';
329 export * from './structs/PeerManager.mjs';
330 export * from './structs/DirectedChannelTransactionParameters.mjs';
331 export * from './structs/ReadOnlyNetworkGraph.mjs';
332 export * from './structs/NetGraphMsgHandler.mjs';
333 export * from './structs/DirectedChannelInfo.mjs';
334 export * from './structs/EffectiveCapacity.mjs';
335 export * from './structs/Score.mjs';
336 export * from './structs/LockableScore.mjs';
337 export * from './structs/MultiThreadedLockableScore.mjs';
338 export * from './structs/RawDataPart.mjs';
339 export * from './structs/Sha256.mjs';
340 export * from './structs/ExpiryTime.mjs';
341 export * from './structs/MinFinalCltvExpiry.mjs';
342 export * from './structs/Fallback.mjs';
343 export * from './structs/Payer.mjs';
344 export * from './structs/Router.mjs';
345 export * from './structs/InvoicePayer.mjs';
346 export * from './structs/RetryAttempts.mjs';
347 export * from './structs/DefaultRouter.mjs';