@trylimbo/sdk-plugin-mxf 0.1.0-canary.96.1.17a82284

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.
@@ -0,0 +1,822 @@
1
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/ffi-types.d.ts
2
+ type UniffiByteArray = Uint8Array;
3
+ //#endregion
4
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/cursor.d.ts
5
+ /**
6
+ * Positional reader/writer over an `ArrayBuffer` slice with monomorphic typed
7
+ * accessors. One `DataView` and one `Uint8Array` are built at construction and
8
+ * reused for every primitive operation — no per-read DataView allocation, no
9
+ * function-pointer dispatch.
10
+ *
11
+ * Big-endian on the wire (matches the UniFFI RustBuffer wire format).
12
+ */
13
+ declare class Cursor {
14
+ private readonly dv;
15
+ private readonly u8;
16
+ private readonly start;
17
+ private readonly end;
18
+ private pos;
19
+ constructor(buffer: ArrayBuffer, offset: number, length: number);
20
+ static fromUint8Array(view: Uint8Array): Cursor;
21
+ remaining(): number;
22
+ skip(n: number): void;
23
+ readU8(): number;
24
+ readI8(): number;
25
+ readU16(): number;
26
+ readI16(): number;
27
+ readU32(): number;
28
+ readI32(): number;
29
+ readU64(): bigint;
30
+ readI64(): bigint;
31
+ readF32(): number;
32
+ readF64(): number;
33
+ readBool(): boolean;
34
+ writeU8(v: number): void;
35
+ writeI8(v: number): void;
36
+ writeU16(v: number): void;
37
+ writeI16(v: number): void;
38
+ writeU32(v: number): void;
39
+ writeI32(v: number): void;
40
+ writeU64(v: bigint): void;
41
+ writeI64(v: bigint): void;
42
+ writeF32(v: number): void;
43
+ writeF64(v: number): void;
44
+ writeBool(v: boolean): void;
45
+ readBytes(len: number): Uint8Array;
46
+ readArrayBuffer(len: number): ArrayBuffer;
47
+ writeBytes(src: Uint8Array): void;
48
+ private boundsCheck;
49
+ }
50
+ //#endregion
51
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/ffi-converters.d.ts
52
+ type RustBufferAllocator = (n: number) => Uint8Array;
53
+ interface FfiConverter<FfiType, TsType> {
54
+ lift(value: FfiType): TsType;
55
+ lower(value: TsType, alloc: RustBufferAllocator): FfiType;
56
+ readFromCursor(c: Cursor): TsType;
57
+ writeIntoCursor(value: TsType, c: Cursor): void;
58
+ allocationSize(value: TsType): number;
59
+ }
60
+ //#endregion
61
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/handle-map.d.ts
62
+ type UniffiHandle = bigint;
63
+ //#endregion
64
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/rust-call.d.ts
65
+ /**
66
+ * A member of any object, acting as a GC guard / destructor guard.
67
+ *
68
+ * The object has a destructor lambda, called when the GC collects the object.
69
+ */
70
+ type UniffiGcObject = {
71
+ /**
72
+ * Called by the `object.uniffiDestroy()` to disable the
73
+ * action of the destructor guard.
74
+ */
75
+ markDestroyed(): void;
76
+ };
77
+ //#endregion
78
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/objects.d.ts
79
+ /**
80
+ * Marker interface for all `interface` objects that cross the FFI.
81
+ * Reminder: `interface` objects have methods written in Rust.
82
+ *
83
+ * This typesscript interface contains the unffi methods that are needed to make
84
+ * the FFI work. It should shrink to zero methods.
85
+ */
86
+ declare abstract class UniffiAbstractObject {
87
+ /**
88
+ * Explicitly tell Rust to destroy the native peer that backs this object.
89
+ *
90
+ * Once this method has been called, any following method calls will throw an error.
91
+ *
92
+ * Can be called more than once.
93
+ */
94
+ abstract uniffiDestroy(): void;
95
+ /**
96
+ * A convenience method to use this object, then destroy it after its use.
97
+ * @param block
98
+ * @returns
99
+ */
100
+ uniffiUse<T>(block: (obj: this) => T): T;
101
+ }
102
+ /**
103
+ * The interface for a helper class generated for each `interface` class.
104
+ *
105
+ * Methods of this interface are not exposed to the API.
106
+ */
107
+ interface UniffiObjectFactory<T> {
108
+ bless(pointer: UniffiHandle): UniffiGcObject;
109
+ unbless(ptr: UniffiGcObject): void;
110
+ create(pointer: UniffiHandle): T;
111
+ pointer(obj: T): UniffiHandle;
112
+ clonePointer(obj: T): UniffiHandle;
113
+ freePointer(pointer: UniffiHandle): void;
114
+ isConcreteType(obj: any): obj is T;
115
+ }
116
+ /**
117
+ * An FfiConverter for an object.
118
+ */
119
+ declare class FfiConverterObject<T> implements FfiConverter<UniffiHandle, T> {
120
+ protected factory: UniffiObjectFactory<T>;
121
+ constructor(factory: UniffiObjectFactory<T>);
122
+ lift(value: UniffiHandle): T;
123
+ lower(value: T, _alloc: RustBufferAllocator): UniffiHandle;
124
+ readFromCursor(c: Cursor): T;
125
+ writeIntoCursor(value: T, c: Cursor): void;
126
+ protected lowerHandle(value: T): UniffiHandle;
127
+ allocationSize(value: T): number;
128
+ }
129
+ //#endregion
130
+ //#region ../../../../../node_modules/@ubjs/core/dist/esm/symbols.d.ts
131
+ /**
132
+ * A destructor guard object is created for every
133
+ * `interface` object.
134
+ *
135
+ * It corresponds to the `DestructibleObject` in C++, which
136
+ * uses a C++ destructor to simulate the JS garbage collector.
137
+ *
138
+ * The implementation is in {@link RustArcPtr.h}.
139
+ */
140
+ declare const destructorGuardSymbol: unique symbol;
141
+ /**
142
+ * The `bigint` pointer corresponding to the Rust memory address
143
+ * of the native peer.
144
+ */
145
+ declare const pointerLiteralSymbol: unique symbol;
146
+ /**
147
+ * The `string` name of the object, enum or error class.
148
+ *
149
+ * This drives the `instanceOf` method implementations.
150
+ */
151
+ declare const uniffiTypeNameSymbol: unique symbol;
152
+ declare namespace trylimbo_plugin_mxf_d_exports {
153
+ export { Code, FieldViolation, MxfAuthor, MxfAuthorInterface, MxfAuthorLike, MxfPlugin, MxfPluginInterface, MxfPluginLike, RangeSink, RangeSource, Region, SdkError, SdkError_Tags, _default$1 as default };
154
+ }
155
+ /**
156
+ * One `google.rpc.BadRequest.FieldViolation`: a request field that failed a constraint.
157
+ */
158
+ type FieldViolation = {
159
+ /**
160
+ * A dotted proto path to the offending field (`""` for a message-level rule).
161
+ */
162
+ field: string;
163
+ /**
164
+ * Human-readable explanation of the violation.
165
+ */
166
+ description: string;
167
+ /**
168
+ * The constraint id that failed (a protovalidate/CEL rule id), stable across releases.
169
+ */
170
+ reason: string;
171
+ };
172
+ /**
173
+ * Generated factory for {@link FieldViolation} record objects.
174
+ */
175
+ declare const FieldViolation: Readonly<{
176
+ create: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
177
+ new: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
178
+ defaults: () => Partial<FieldViolation>;
179
+ }>;
180
+ /**
181
+ * A byte window a manifest occupies. Structurally identical to the SDKs' `Region`, so the two
182
+ * cross the boundary without sharing a Rust type.
183
+ */
184
+ type Region = {
185
+ offset: bigint;
186
+ length: bigint;
187
+ };
188
+ /**
189
+ * Generated factory for {@link Region} record objects.
190
+ */
191
+ declare const Region: Readonly<{
192
+ create: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
193
+ new: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
194
+ defaults: () => Partial<Region>;
195
+ }>;
196
+ /**
197
+ * A canonical gRPC/Connect status code: the coarse, closed failure class.
198
+ *
199
+ * The wasm lane projects this as the Connect `snake_case` string, so a consumer
200
+ * narrows on `err.code === "resource_exhausted"`; the native lane projects an enum.
201
+ */
202
+ declare enum Code {
203
+ Canceled = 0,
204
+ Unknown = 1,
205
+ InvalidArgument = 2,
206
+ DeadlineExceeded = 3,
207
+ NotFound = 4,
208
+ AlreadyExists = 5,
209
+ PermissionDenied = 6,
210
+ ResourceExhausted = 7,
211
+ FailedPrecondition = 8,
212
+ Aborted = 9,
213
+ OutOfRange = 10,
214
+ Unimplemented = 11,
215
+ Internal = 12,
216
+ Unavailable = 13,
217
+ DataLoss = 14,
218
+ Unauthenticated = 15
219
+ }
220
+ declare enum SdkError_Tags {
221
+ Reason = "Reason",
222
+ Invalid = "Invalid",
223
+ Status = "Status"
224
+ }
225
+ /**
226
+ * The error every SDK call throws: a decoded `google.rpc.Status`, discriminated
227
+ * as a semantic reason, a request validation, or a bare status. `code` and `message`
228
+ * are common to every variant.
229
+ */
230
+ declare const SdkError: Readonly<{
231
+ instanceOf: (obj: any) => obj is SdkError;
232
+ Reason: {
233
+ new (inner: {
234
+ code: Code;
235
+ message: string;
236
+ reason: string;
237
+ domain: string;
238
+ metadata: Map<string, string>;
239
+ }): {
240
+ /**
241
+ * @private
242
+ * This field is private and should not be used, use `tag` instead.
243
+ */
244
+ readonly [uniffiTypeNameSymbol]: "SdkError";
245
+ readonly tag: SdkError_Tags.Reason;
246
+ readonly inner: Readonly<{
247
+ code: Code;
248
+ message: string;
249
+ reason: string;
250
+ domain: string;
251
+ metadata: Map<string, string>;
252
+ }>;
253
+ name: string;
254
+ message: string;
255
+ stack?: string;
256
+ cause?: unknown;
257
+ };
258
+ "new"(inner: {
259
+ code: Code;
260
+ message: string;
261
+ reason: string;
262
+ domain: string;
263
+ metadata: Map<string, string>;
264
+ }): {
265
+ /**
266
+ * @private
267
+ * This field is private and should not be used, use `tag` instead.
268
+ */
269
+ readonly [uniffiTypeNameSymbol]: "SdkError";
270
+ readonly tag: SdkError_Tags.Reason;
271
+ readonly inner: Readonly<{
272
+ code: Code;
273
+ message: string;
274
+ reason: string;
275
+ domain: string;
276
+ metadata: Map<string, string>;
277
+ }>;
278
+ name: string;
279
+ message: string;
280
+ stack?: string;
281
+ cause?: unknown;
282
+ };
283
+ instanceOf(obj: any): obj is {
284
+ /**
285
+ * @private
286
+ * This field is private and should not be used, use `tag` instead.
287
+ */
288
+ readonly [uniffiTypeNameSymbol]: "SdkError";
289
+ readonly tag: SdkError_Tags.Reason;
290
+ readonly inner: Readonly<{
291
+ code: Code;
292
+ message: string;
293
+ reason: string;
294
+ domain: string;
295
+ metadata: Map<string, string>;
296
+ }>;
297
+ name: string;
298
+ message: string;
299
+ stack?: string;
300
+ cause?: unknown;
301
+ };
302
+ hasInner(obj: any): obj is {
303
+ /**
304
+ * @private
305
+ * This field is private and should not be used, use `tag` instead.
306
+ */
307
+ readonly [uniffiTypeNameSymbol]: "SdkError";
308
+ readonly tag: SdkError_Tags.Reason;
309
+ readonly inner: Readonly<{
310
+ code: Code;
311
+ message: string;
312
+ reason: string;
313
+ domain: string;
314
+ metadata: Map<string, string>;
315
+ }>;
316
+ name: string;
317
+ message: string;
318
+ stack?: string;
319
+ cause?: unknown;
320
+ };
321
+ getInner(obj: {
322
+ /**
323
+ * @private
324
+ * This field is private and should not be used, use `tag` instead.
325
+ */
326
+ readonly [uniffiTypeNameSymbol]: "SdkError";
327
+ readonly tag: SdkError_Tags.Reason;
328
+ readonly inner: Readonly<{
329
+ code: Code;
330
+ message: string;
331
+ reason: string;
332
+ domain: string;
333
+ metadata: Map<string, string>;
334
+ }>;
335
+ name: string;
336
+ message: string;
337
+ stack?: string;
338
+ cause?: unknown;
339
+ }): Readonly<{
340
+ code: Code;
341
+ message: string;
342
+ reason: string;
343
+ domain: string;
344
+ metadata: Map<string, string>;
345
+ }>;
346
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
347
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
348
+ stackTraceLimit: number;
349
+ };
350
+ Invalid: {
351
+ new (inner: {
352
+ code: Code;
353
+ message: string;
354
+ fieldViolations: Array<FieldViolation>;
355
+ }): {
356
+ /**
357
+ * @private
358
+ * This field is private and should not be used, use `tag` instead.
359
+ */
360
+ readonly [uniffiTypeNameSymbol]: "SdkError";
361
+ readonly tag: SdkError_Tags.Invalid;
362
+ readonly inner: Readonly<{
363
+ code: Code;
364
+ message: string;
365
+ fieldViolations: Array<FieldViolation>;
366
+ }>;
367
+ name: string;
368
+ message: string;
369
+ stack?: string;
370
+ cause?: unknown;
371
+ };
372
+ "new"(inner: {
373
+ code: Code;
374
+ message: string;
375
+ fieldViolations: Array<FieldViolation>;
376
+ }): {
377
+ /**
378
+ * @private
379
+ * This field is private and should not be used, use `tag` instead.
380
+ */
381
+ readonly [uniffiTypeNameSymbol]: "SdkError";
382
+ readonly tag: SdkError_Tags.Invalid;
383
+ readonly inner: Readonly<{
384
+ code: Code;
385
+ message: string;
386
+ fieldViolations: Array<FieldViolation>;
387
+ }>;
388
+ name: string;
389
+ message: string;
390
+ stack?: string;
391
+ cause?: unknown;
392
+ };
393
+ instanceOf(obj: any): obj is {
394
+ /**
395
+ * @private
396
+ * This field is private and should not be used, use `tag` instead.
397
+ */
398
+ readonly [uniffiTypeNameSymbol]: "SdkError";
399
+ readonly tag: SdkError_Tags.Invalid;
400
+ readonly inner: Readonly<{
401
+ code: Code;
402
+ message: string;
403
+ fieldViolations: Array<FieldViolation>;
404
+ }>;
405
+ name: string;
406
+ message: string;
407
+ stack?: string;
408
+ cause?: unknown;
409
+ };
410
+ hasInner(obj: any): obj is {
411
+ /**
412
+ * @private
413
+ * This field is private and should not be used, use `tag` instead.
414
+ */
415
+ readonly [uniffiTypeNameSymbol]: "SdkError";
416
+ readonly tag: SdkError_Tags.Invalid;
417
+ readonly inner: Readonly<{
418
+ code: Code;
419
+ message: string;
420
+ fieldViolations: Array<FieldViolation>;
421
+ }>;
422
+ name: string;
423
+ message: string;
424
+ stack?: string;
425
+ cause?: unknown;
426
+ };
427
+ getInner(obj: {
428
+ /**
429
+ * @private
430
+ * This field is private and should not be used, use `tag` instead.
431
+ */
432
+ readonly [uniffiTypeNameSymbol]: "SdkError";
433
+ readonly tag: SdkError_Tags.Invalid;
434
+ readonly inner: Readonly<{
435
+ code: Code;
436
+ message: string;
437
+ fieldViolations: Array<FieldViolation>;
438
+ }>;
439
+ name: string;
440
+ message: string;
441
+ stack?: string;
442
+ cause?: unknown;
443
+ }): Readonly<{
444
+ code: Code;
445
+ message: string;
446
+ fieldViolations: Array<FieldViolation>;
447
+ }>;
448
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
449
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
450
+ stackTraceLimit: number;
451
+ };
452
+ Status: {
453
+ new (inner: {
454
+ code: Code;
455
+ message: string;
456
+ }): {
457
+ /**
458
+ * @private
459
+ * This field is private and should not be used, use `tag` instead.
460
+ */
461
+ readonly [uniffiTypeNameSymbol]: "SdkError";
462
+ readonly tag: SdkError_Tags.Status;
463
+ readonly inner: Readonly<{
464
+ code: Code;
465
+ message: string;
466
+ }>;
467
+ name: string;
468
+ message: string;
469
+ stack?: string;
470
+ cause?: unknown;
471
+ };
472
+ "new"(inner: {
473
+ code: Code;
474
+ message: string;
475
+ }): {
476
+ /**
477
+ * @private
478
+ * This field is private and should not be used, use `tag` instead.
479
+ */
480
+ readonly [uniffiTypeNameSymbol]: "SdkError";
481
+ readonly tag: SdkError_Tags.Status;
482
+ readonly inner: Readonly<{
483
+ code: Code;
484
+ message: string;
485
+ }>;
486
+ name: string;
487
+ message: string;
488
+ stack?: string;
489
+ cause?: unknown;
490
+ };
491
+ instanceOf(obj: any): obj is {
492
+ /**
493
+ * @private
494
+ * This field is private and should not be used, use `tag` instead.
495
+ */
496
+ readonly [uniffiTypeNameSymbol]: "SdkError";
497
+ readonly tag: SdkError_Tags.Status;
498
+ readonly inner: Readonly<{
499
+ code: Code;
500
+ message: string;
501
+ }>;
502
+ name: string;
503
+ message: string;
504
+ stack?: string;
505
+ cause?: unknown;
506
+ };
507
+ hasInner(obj: any): obj is {
508
+ /**
509
+ * @private
510
+ * This field is private and should not be used, use `tag` instead.
511
+ */
512
+ readonly [uniffiTypeNameSymbol]: "SdkError";
513
+ readonly tag: SdkError_Tags.Status;
514
+ readonly inner: Readonly<{
515
+ code: Code;
516
+ message: string;
517
+ }>;
518
+ name: string;
519
+ message: string;
520
+ stack?: string;
521
+ cause?: unknown;
522
+ };
523
+ getInner(obj: {
524
+ /**
525
+ * @private
526
+ * This field is private and should not be used, use `tag` instead.
527
+ */
528
+ readonly [uniffiTypeNameSymbol]: "SdkError";
529
+ readonly tag: SdkError_Tags.Status;
530
+ readonly inner: Readonly<{
531
+ code: Code;
532
+ message: string;
533
+ }>;
534
+ name: string;
535
+ message: string;
536
+ stack?: string;
537
+ cause?: unknown;
538
+ }): Readonly<{
539
+ code: Code;
540
+ message: string;
541
+ }>;
542
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
543
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
544
+ stackTraceLimit: number;
545
+ };
546
+ }>;
547
+ /**
548
+ * The error every SDK call throws: a decoded `google.rpc.Status`, discriminated
549
+ * as a semantic reason, a request validation, or a bare status. `code` and `message`
550
+ * are common to every variant.
551
+ */
552
+ type SdkError = InstanceType<typeof SdkError['Reason' | 'Invalid' | 'Status']>;
553
+ /**
554
+ * A ranged byte source the core lends the plugin. Async because the handle that arrives here is
555
+ * the SDK's own, whose seam is async so the caller's storage may be a round trip; the two must
556
+ * agree method for method or the handle cannot cross.
557
+ *
558
+ * Both methods are fallible: an infallible `read_at` can only report a failed read as a short
559
+ * one, indistinguishable from a legitimate end of file, so a storage timeout would silently
560
+ * author against a truncated asset.
561
+ */
562
+ interface RangeSource {
563
+ length(asyncOpts_?: {
564
+ signal: AbortSignal;
565
+ }): Promise<bigint>;
566
+ readAt(offset: bigint, length: number, asyncOpts_?: {
567
+ signal: AbortSignal;
568
+ }): Promise<ArrayBuffer>;
569
+ }
570
+ /**
571
+ * A ranged read+write backend, for `reserve_slot`. All four methods are first-class: UniFFI has
572
+ * no trait inheritance for foreign callbacks, so the read half is duplicated from
573
+ * [`RangeSource`] rather than extended.
574
+ */
575
+ interface RangeSink {
576
+ length(asyncOpts_?: {
577
+ signal: AbortSignal;
578
+ }): Promise<bigint>;
579
+ readAt(offset: bigint, length: number, asyncOpts_?: {
580
+ signal: AbortSignal;
581
+ }): Promise<ArrayBuffer>;
582
+ writeAt(offset: bigint, data: ArrayBuffer, asyncOpts_?: {
583
+ signal: AbortSignal;
584
+ }): Promise<void>;
585
+ setLength(length: bigint, asyncOpts_?: {
586
+ signal: AbortSignal;
587
+ }): Promise<void>;
588
+ }
589
+ /**
590
+ * MXF slot authoring, as the object a host registers on the issuer's `PluginRegistry`.
591
+ *
592
+ * The four methods mirror the issuer's `PluginAuthor` exactly. They are declared flat,
593
+ * because UniFFI has no trait inheritance for foreign callbacks, so the generated binding
594
+ * satisfies that interface as-is, with nothing in between.
595
+ */
596
+ interface MxfAuthorLike {
597
+ /**
598
+ * The manifest window(s), or empty when the asset carries none. Byte-identical whether
599
+ * the slot is empty, filled or zeroed: the SDK round-trips this and fails the sign if
600
+ * it drifts.
601
+ *
602
+ * # Errors
603
+ *
604
+ * [`SdkError`] when the source cannot be read or the MXF structure is malformed.
605
+ */
606
+ locate(src: RangeSource, asyncOpts_?: {
607
+ signal: AbortSignal;
608
+ }): Promise<Array<Region>>;
609
+ /**
610
+ * The media types this plugin owns. The SDK asserts any `sniff` result is a member.
611
+ */
612
+ mediaTypes(): Array<string>;
613
+ /**
614
+ * Reserve `reserve` bytes of manifest slot by writing MXF structure through `dst`, and
615
+ * return exactly where it landed. Never embeds: the SDK writes the signed manifest into
616
+ * the returned regions.
617
+ *
618
+ * # Errors
619
+ *
620
+ * [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
621
+ */
622
+ reserveSlot(dst: RangeSink, reserve: bigint, asyncOpts_?: {
623
+ signal: AbortSignal;
624
+ }): Promise<Array<Region>>;
625
+ /**
626
+ * Recognize MXF from the real bytes, or `None` to decline.
627
+ *
628
+ * # Errors
629
+ *
630
+ * [`SdkError`] when the source cannot be read.
631
+ */
632
+ sniff(src: RangeSource, asyncOpts_?: {
633
+ signal: AbortSignal;
634
+ }): Promise<string | undefined>;
635
+ }
636
+ /**
637
+ * @deprecated Use `MxfAuthorLike` instead.
638
+ */
639
+ type MxfAuthorInterface = MxfAuthorLike;
640
+ /**
641
+ * MXF slot authoring, as the object a host registers on the issuer's `PluginRegistry`.
642
+ *
643
+ * The four methods mirror the issuer's `PluginAuthor` exactly. They are declared flat,
644
+ * because UniFFI has no trait inheritance for foreign callbacks, so the generated binding
645
+ * satisfies that interface as-is, with nothing in between.
646
+ */
647
+ declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthorLike {
648
+ readonly [uniffiTypeNameSymbol] = "MxfAuthor";
649
+ readonly [destructorGuardSymbol]: UniffiGcObject;
650
+ readonly [pointerLiteralSymbol]: UniffiHandle;
651
+ constructor();
652
+ /**
653
+ * The manifest window(s), or empty when the asset carries none. Byte-identical whether
654
+ * the slot is empty, filled or zeroed: the SDK round-trips this and fails the sign if
655
+ * it drifts.
656
+ *
657
+ * # Errors
658
+ *
659
+ * [`SdkError`] when the source cannot be read or the MXF structure is malformed.
660
+ */
661
+ locate(src: RangeSource, asyncOpts_?: {
662
+ signal: AbortSignal;
663
+ }): Promise<Array<Region>>;
664
+ /**
665
+ * The media types this plugin owns. The SDK asserts any `sniff` result is a member.
666
+ */
667
+ mediaTypes(): Array<string>;
668
+ /**
669
+ * Reserve `reserve` bytes of manifest slot by writing MXF structure through `dst`, and
670
+ * return exactly where it landed. Never embeds: the SDK writes the signed manifest into
671
+ * the returned regions.
672
+ *
673
+ * # Errors
674
+ *
675
+ * [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
676
+ */
677
+ reserveSlot(dst: RangeSink, reserve: bigint, asyncOpts_?: {
678
+ signal: AbortSignal;
679
+ }): Promise<Array<Region>>;
680
+ /**
681
+ * Recognize MXF from the real bytes, or `None` to decline.
682
+ *
683
+ * # Errors
684
+ *
685
+ * [`SdkError`] when the source cannot be read.
686
+ */
687
+ sniff(src: RangeSource, asyncOpts_?: {
688
+ signal: AbortSignal;
689
+ }): Promise<string | undefined>;
690
+ uniffiDestroy(): void;
691
+ static instanceOf(obj_: any): obj_ is MxfAuthor;
692
+ }
693
+ /**
694
+ * MXF reading, as the object a host registers on the verifier's `PluginRegistry`.
695
+ *
696
+ * The three methods mirror the verifier's `PluginRead` exactly, so the generated binding
697
+ * satisfies that interface as-is. Carries no libMXF++: locating a slot is pure Rust.
698
+ */
699
+ interface MxfPluginLike {
700
+ /**
701
+ * The manifest window(s), or empty when the asset carries none. What the verifier hashes
702
+ * around: everything reported here is excluded from the signed content hash.
703
+ *
704
+ * # Errors
705
+ *
706
+ * [`SdkError`] when the source cannot be read or the MXF structure is malformed.
707
+ */
708
+ locate(src: RangeSource, asyncOpts_?: {
709
+ signal: AbortSignal;
710
+ }): Promise<Array<Region>>;
711
+ /**
712
+ * The media types this plugin owns. The SDK asserts any `sniff` result is a member.
713
+ */
714
+ mediaTypes(): Array<string>;
715
+ /**
716
+ * Recognize MXF from the real bytes, or `None` to decline.
717
+ *
718
+ * # Errors
719
+ *
720
+ * [`SdkError`] when the source cannot be read.
721
+ */
722
+ sniff(src: RangeSource, asyncOpts_?: {
723
+ signal: AbortSignal;
724
+ }): Promise<string | undefined>;
725
+ }
726
+ /**
727
+ * @deprecated Use `MxfPluginLike` instead.
728
+ */
729
+ type MxfPluginInterface = MxfPluginLike;
730
+ /**
731
+ * MXF reading, as the object a host registers on the verifier's `PluginRegistry`.
732
+ *
733
+ * The three methods mirror the verifier's `PluginRead` exactly, so the generated binding
734
+ * satisfies that interface as-is. Carries no libMXF++: locating a slot is pure Rust.
735
+ */
736
+ declare class MxfPlugin extends UniffiAbstractObject implements MxfPluginLike {
737
+ readonly [uniffiTypeNameSymbol] = "MxfPlugin";
738
+ readonly [destructorGuardSymbol]: UniffiGcObject;
739
+ readonly [pointerLiteralSymbol]: UniffiHandle;
740
+ constructor();
741
+ /**
742
+ * The manifest window(s), or empty when the asset carries none. What the verifier hashes
743
+ * around: everything reported here is excluded from the signed content hash.
744
+ *
745
+ * # Errors
746
+ *
747
+ * [`SdkError`] when the source cannot be read or the MXF structure is malformed.
748
+ */
749
+ locate(src: RangeSource, asyncOpts_?: {
750
+ signal: AbortSignal;
751
+ }): Promise<Array<Region>>;
752
+ /**
753
+ * The media types this plugin owns. The SDK asserts any `sniff` result is a member.
754
+ */
755
+ mediaTypes(): Array<string>;
756
+ /**
757
+ * Recognize MXF from the real bytes, or `None` to decline.
758
+ *
759
+ * # Errors
760
+ *
761
+ * [`SdkError`] when the source cannot be read.
762
+ */
763
+ sniff(src: RangeSource, asyncOpts_?: {
764
+ signal: AbortSignal;
765
+ }): Promise<string | undefined>;
766
+ uniffiDestroy(): void;
767
+ static instanceOf(obj_: any): obj_ is MxfPlugin;
768
+ }
769
+ /**
770
+ * This should be called before anything else.
771
+ *
772
+ * It is likely that this is being done for you by the library's `index.ts`.
773
+ *
774
+ * It checks versions of uniffi between when the Rust scaffolding was generated
775
+ * and when the bindings were generated.
776
+ *
777
+ * It also initializes the machinery to enable Rust to talk back to Javascript.
778
+ */
779
+ declare function uniffiEnsureInitialized(): void;
780
+ declare const _default$1: Readonly<{
781
+ initialize: typeof uniffiEnsureInitialized;
782
+ converters: {
783
+ FfiConverterTypeCode: {
784
+ readFromCursor(c: Cursor): Code;
785
+ writeIntoCursor(value: Code, c: Cursor): void;
786
+ allocationSize(value: Code): number;
787
+ lift(value: UniffiByteArray): Code;
788
+ lower(value: Code, alloc: RustBufferAllocator): UniffiByteArray;
789
+ };
790
+ FfiConverterTypeFieldViolation: {
791
+ readFromCursor(c: Cursor): FieldViolation;
792
+ writeIntoCursor(value: FieldViolation, c: Cursor): void;
793
+ allocationSize(value: FieldViolation): number;
794
+ lift(value: UniffiByteArray): FieldViolation;
795
+ lower(value: FieldViolation, alloc: RustBufferAllocator): UniffiByteArray;
796
+ };
797
+ FfiConverterTypeMxfAuthor: FfiConverterObject<MxfAuthorLike>;
798
+ FfiConverterTypeMxfPlugin: FfiConverterObject<MxfPluginLike>;
799
+ FfiConverterTypeRegion: {
800
+ readFromCursor(c: Cursor): Region;
801
+ writeIntoCursor(value: Region, c: Cursor): void;
802
+ allocationSize(value: Region): number;
803
+ lift(value: UniffiByteArray): Region;
804
+ lower(value: Region, alloc: RustBufferAllocator): UniffiByteArray;
805
+ };
806
+ FfiConverterTypeSdkError: {
807
+ readFromCursor(c: Cursor): SdkError;
808
+ writeIntoCursor(value: SdkError, c: Cursor): void;
809
+ allocationSize(value: SdkError): number;
810
+ lift(value: UniffiByteArray): SdkError;
811
+ lower(value: SdkError, alloc: RustBufferAllocator): UniffiByteArray;
812
+ };
813
+ };
814
+ }>;
815
+ //#endregion
816
+ //#region ../../../../../target/trylimbo/codegen/ffi-trylimbo_plugin_mxf/index.d.ts
817
+ declare function uniffiInitAsync(): Promise<void>;
818
+ declare const _default: {
819
+ trylimbo_plugin_mxf: typeof trylimbo_plugin_mxf_d_exports;
820
+ };
821
+ //#endregion
822
+ export { Code, FieldViolation, MxfAuthor, MxfAuthorInterface, MxfAuthorLike, MxfPlugin, MxfPluginInterface, MxfPluginLike, RangeSink, RangeSource, Region, SdkError, SdkError_Tags, _default as default, uniffiInitAsync };