@minnowdb/core 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/block-format/block.d.ts +32 -13
- package/dist/block-format/block.js +179 -55
- package/dist/block-format/checksum.d.ts +2 -1
- package/dist/block-format/checksum.js +5 -2
- package/dist/block-format/codecs.d.ts +7 -2
- package/dist/block-format/codecs.js +53 -12
- package/dist/block-format/column.d.ts +3 -2
- package/dist/block-format/column.js +96 -30
- package/dist/block-format/index.d.ts +2 -2
- package/dist/block-format/index.js +2 -2
- package/dist/block-format/physical.d.ts +8 -2
- package/dist/block-format/physical.js +14 -6
- package/dist/block-format/types.d.ts +7 -3
- package/dist/block-format/types.js +0 -1
- package/dist/block-format/unicode.d.ts +11 -0
- package/dist/block-format/unicode.js +46 -0
- package/dist/date-value.d.ts +15 -0
- package/dist/date-value.js +64 -0
- package/dist/engine/artifact-cache.d.ts +0 -1
- package/dist/engine/artifact-cache.js +0 -1
- package/dist/engine/batch.d.ts +5 -2
- package/dist/engine/batch.js +0 -1
- package/dist/engine/buffered-writer.d.ts +2 -1
- package/dist/engine/buffered-writer.js +34 -9
- package/dist/engine/cache-limits.d.ts +25 -0
- package/dist/engine/cache-limits.js +25 -0
- package/dist/engine/catalog.d.ts +5 -6
- package/dist/engine/catalog.js +5 -5
- package/dist/engine/client.d.ts +27 -7
- package/dist/engine/client.js +197 -31
- package/dist/engine/database.d.ts +161 -38
- package/dist/engine/database.js +4326 -1523
- package/dist/engine/defaults.d.ts +0 -1
- package/dist/engine/defaults.js +2 -4
- package/dist/engine/errors.d.ts +19 -1
- package/dist/engine/errors.js +32 -2
- package/dist/engine/fts.d.ts +0 -6
- package/dist/engine/fts.js +39 -14
- package/dist/engine/group-index.d.ts +0 -1
- package/dist/engine/group-index.js +6 -11
- package/dist/engine/index.d.ts +16 -11
- package/dist/engine/index.js +12 -10
- package/dist/engine/join-index.d.ts +0 -1
- package/dist/engine/join-index.js +2 -2
- package/dist/engine/keyed-live.d.ts +57 -0
- package/dist/engine/keyed-live.js +226 -0
- package/dist/engine/live-api.d.ts +4 -0
- package/dist/engine/live-api.js +4 -0
- package/dist/engine/live.d.ts +43 -26
- package/dist/engine/live.js +499 -129
- package/dist/engine/memory.d.ts +2 -1
- package/dist/engine/memory.js +3 -2
- package/dist/engine/optimizer.d.ts +0 -1
- package/dist/engine/optimizer.js +4 -4
- package/dist/engine/query-api.d.ts +3 -0
- package/dist/engine/query-api.js +3 -0
- package/dist/engine/query-cache.d.ts +0 -1
- package/dist/engine/query-cache.js +4 -4
- package/dist/engine/query.d.ts +4 -7
- package/dist/engine/query.js +348 -155
- package/dist/engine/result-wire.d.ts +0 -1
- package/dist/engine/result-wire.js +2 -2
- package/dist/engine/schema-wire.d.ts +1 -2
- package/dist/engine/schema-wire.js +0 -1
- package/dist/engine/schema.d.ts +3 -8
- package/dist/engine/schema.js +41 -24
- package/dist/engine/sort-keys.d.ts +0 -1
- package/dist/engine/sort-keys.js +2 -2
- package/dist/engine/sql-domains.d.ts +6 -1
- package/dist/engine/sql-domains.js +209 -45
- package/dist/engine/sql-driver.d.ts +2 -2
- package/dist/engine/sql-driver.js +0 -1
- package/dist/engine/sql-json.d.ts +0 -1
- package/dist/engine/sql-json.js +53 -7
- package/dist/engine/sql-semantics.d.ts +8 -5
- package/dist/engine/sql-semantics.js +427 -65
- package/dist/engine/typed-live.d.ts +67 -0
- package/dist/engine/typed-live.js +349 -0
- package/dist/engine/vector.d.ts +7 -1
- package/dist/engine/vector.js +202 -58
- package/dist/engine/worker-host.d.ts +8 -2
- package/dist/engine/worker-host.js +616 -152
- package/dist/engine/worker.d.ts +0 -1
- package/dist/engine/worker.js +3 -3
- package/dist/engine/write-block-planner.d.ts +18 -0
- package/dist/engine/write-block-planner.js +112 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/plan/index.d.ts +0 -1
- package/dist/plan/index.js +0 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/indexeddb.d.ts +74 -65
- package/dist/storage/indexeddb.js +12301 -2076
- package/dist/storage/memory.d.ts +56 -66
- package/dist/storage/memory.js +1004 -139
- package/dist/storage/opfs/files.d.ts +18 -7
- package/dist/storage/opfs/files.js +115 -28
- package/dist/storage/opfs/index.d.ts +1 -1
- package/dist/storage/opfs/index.js +1 -1
- package/dist/storage/opfs/leader.d.ts +403 -91
- package/dist/storage/opfs/leader.js +4318 -602
- package/dist/storage/opfs/rpc.d.ts +15 -3
- package/dist/storage/opfs/rpc.js +223 -2
- package/dist/storage/opfs/snapshot-ledger.d.ts +40 -0
- package/dist/storage/opfs/snapshot-ledger.js +281 -0
- package/dist/storage/opfs/store.d.ts +26 -121
- package/dist/storage/opfs/store.js +436 -388
- package/dist/storage/persistence.d.ts +37 -0
- package/dist/storage/persistence.js +78 -0
- package/dist/storage/snapshot-stream.d.ts +24 -0
- package/dist/storage/snapshot-stream.js +897 -0
- package/dist/storage/snapshot.d.ts +9 -99
- package/dist/storage/snapshot.js +33 -309
- package/dist/storage/toolkit/extents.d.ts +41 -7
- package/dist/storage/toolkit/extents.js +402 -39
- package/dist/storage/toolkit/index.d.ts +3 -4
- package/dist/storage/toolkit/index.js +27 -3
- package/dist/storage/toolkit/record-core.d.ts +174 -61
- package/dist/storage/toolkit/record-core.js +5401 -849
- package/dist/storage/toolkit/sync-file.d.ts +10 -1
- package/dist/storage/toolkit/sync-file.js +50 -2
- package/dist/storage/toolkit/wal.d.ts +23 -5
- package/dist/storage/toolkit/wal.js +89 -27
- package/dist/storage/toolkit/wire.d.ts +4 -6
- package/dist/storage/toolkit/wire.js +80 -25
- package/dist/storage/types.d.ts +1271 -218
- package/dist/storage/types.js +1471 -138
- package/dist/testing/block-store-conformance.d.ts +0 -1
- package/dist/testing/block-store-conformance.js +877 -138
- package/dist/testing/index.d.ts +42 -31
- package/dist/testing/index.js +100 -68
- package/dist/testing/opfs-shim.d.ts +13 -3
- package/dist/testing/opfs-shim.js +40 -6
- package/dist/testing/simulator.d.ts +0 -1
- package/dist/testing/simulator.js +43 -12
- package/dist/testing/sqllogictest.d.ts +0 -1
- package/dist/testing/sqllogictest.js +0 -1
- package/dist/transactions/index.d.ts +81 -20
- package/dist/transactions/index.js +1050 -268
- package/dist/worker-protocol/index.d.ts +3 -2
- package/dist/worker-protocol/index.js +2 -5
- package/package.json +49 -1
- package/dist/block-format/block.d.ts.map +0 -1
- package/dist/block-format/block.js.map +0 -1
- package/dist/block-format/checksum.d.ts.map +0 -1
- package/dist/block-format/checksum.js.map +0 -1
- package/dist/block-format/codecs.d.ts.map +0 -1
- package/dist/block-format/codecs.js.map +0 -1
- package/dist/block-format/column.d.ts.map +0 -1
- package/dist/block-format/column.js.map +0 -1
- package/dist/block-format/index.d.ts.map +0 -1
- package/dist/block-format/index.js.map +0 -1
- package/dist/block-format/physical.d.ts.map +0 -1
- package/dist/block-format/physical.js.map +0 -1
- package/dist/block-format/types.d.ts.map +0 -1
- package/dist/block-format/types.js.map +0 -1
- package/dist/engine/artifact-cache.d.ts.map +0 -1
- package/dist/engine/artifact-cache.js.map +0 -1
- package/dist/engine/batch.d.ts.map +0 -1
- package/dist/engine/batch.js.map +0 -1
- package/dist/engine/buffered-writer.d.ts.map +0 -1
- package/dist/engine/buffered-writer.js.map +0 -1
- package/dist/engine/catalog.d.ts.map +0 -1
- package/dist/engine/catalog.js.map +0 -1
- package/dist/engine/client.d.ts.map +0 -1
- package/dist/engine/client.js.map +0 -1
- package/dist/engine/coordinator.d.ts +0 -17
- package/dist/engine/coordinator.d.ts.map +0 -1
- package/dist/engine/coordinator.js +0 -60
- package/dist/engine/coordinator.js.map +0 -1
- package/dist/engine/database.d.ts.map +0 -1
- package/dist/engine/database.js.map +0 -1
- package/dist/engine/defaults.d.ts.map +0 -1
- package/dist/engine/defaults.js.map +0 -1
- package/dist/engine/errors.d.ts.map +0 -1
- package/dist/engine/errors.js.map +0 -1
- package/dist/engine/fts.d.ts.map +0 -1
- package/dist/engine/fts.js.map +0 -1
- package/dist/engine/group-index.d.ts.map +0 -1
- package/dist/engine/group-index.js.map +0 -1
- package/dist/engine/index.d.ts.map +0 -1
- package/dist/engine/index.js.map +0 -1
- package/dist/engine/join-index.d.ts.map +0 -1
- package/dist/engine/join-index.js.map +0 -1
- package/dist/engine/live.d.ts.map +0 -1
- package/dist/engine/live.js.map +0 -1
- package/dist/engine/memory.d.ts.map +0 -1
- package/dist/engine/memory.js.map +0 -1
- package/dist/engine/optimizer.d.ts.map +0 -1
- package/dist/engine/optimizer.js.map +0 -1
- package/dist/engine/query-cache.d.ts.map +0 -1
- package/dist/engine/query-cache.js.map +0 -1
- package/dist/engine/query.d.ts.map +0 -1
- package/dist/engine/query.js.map +0 -1
- package/dist/engine/result-wire.d.ts.map +0 -1
- package/dist/engine/result-wire.js.map +0 -1
- package/dist/engine/schema-wire.d.ts.map +0 -1
- package/dist/engine/schema-wire.js.map +0 -1
- package/dist/engine/schema.d.ts.map +0 -1
- package/dist/engine/schema.js.map +0 -1
- package/dist/engine/sort-keys.d.ts.map +0 -1
- package/dist/engine/sort-keys.js.map +0 -1
- package/dist/engine/sql-domains.d.ts.map +0 -1
- package/dist/engine/sql-domains.js.map +0 -1
- package/dist/engine/sql-driver.d.ts.map +0 -1
- package/dist/engine/sql-driver.js.map +0 -1
- package/dist/engine/sql-json.d.ts.map +0 -1
- package/dist/engine/sql-json.js.map +0 -1
- package/dist/engine/sql-semantics.d.ts.map +0 -1
- package/dist/engine/sql-semantics.js.map +0 -1
- package/dist/engine/vector.d.ts.map +0 -1
- package/dist/engine/vector.js.map +0 -1
- package/dist/engine/worker-host.d.ts.map +0 -1
- package/dist/engine/worker-host.js.map +0 -1
- package/dist/engine/worker.d.ts.map +0 -1
- package/dist/engine/worker.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plan/index.d.ts.map +0 -1
- package/dist/plan/index.js.map +0 -1
- package/dist/storage/fixture-shape.d.ts +0 -42
- package/dist/storage/fixture-shape.d.ts.map +0 -1
- package/dist/storage/fixture-shape.js +0 -146
- package/dist/storage/fixture-shape.js.map +0 -1
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/indexeddb.d.ts.map +0 -1
- package/dist/storage/indexeddb.js.map +0 -1
- package/dist/storage/memory.d.ts.map +0 -1
- package/dist/storage/memory.js.map +0 -1
- package/dist/storage/opfs/files.d.ts.map +0 -1
- package/dist/storage/opfs/files.js.map +0 -1
- package/dist/storage/opfs/index.d.ts.map +0 -1
- package/dist/storage/opfs/index.js.map +0 -1
- package/dist/storage/opfs/leader.d.ts.map +0 -1
- package/dist/storage/opfs/leader.js.map +0 -1
- package/dist/storage/opfs/rpc.d.ts.map +0 -1
- package/dist/storage/opfs/rpc.js.map +0 -1
- package/dist/storage/opfs/store.d.ts.map +0 -1
- package/dist/storage/opfs/store.js.map +0 -1
- package/dist/storage/snapshot.d.ts.map +0 -1
- package/dist/storage/snapshot.js.map +0 -1
- package/dist/storage/toolkit/extents.d.ts.map +0 -1
- package/dist/storage/toolkit/extents.js.map +0 -1
- package/dist/storage/toolkit/index.d.ts.map +0 -1
- package/dist/storage/toolkit/index.js.map +0 -1
- package/dist/storage/toolkit/record-core.d.ts.map +0 -1
- package/dist/storage/toolkit/record-core.js.map +0 -1
- package/dist/storage/toolkit/sync-file.d.ts.map +0 -1
- package/dist/storage/toolkit/sync-file.js.map +0 -1
- package/dist/storage/toolkit/wal.d.ts.map +0 -1
- package/dist/storage/toolkit/wal.js.map +0 -1
- package/dist/storage/toolkit/wire.d.ts.map +0 -1
- package/dist/storage/toolkit/wire.js.map +0 -1
- package/dist/storage/types.d.ts.map +0 -1
- package/dist/storage/types.js.map +0 -1
- package/dist/testing/block-store-conformance.d.ts.map +0 -1
- package/dist/testing/block-store-conformance.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/dist/testing/opfs-shim.d.ts.map +0 -1
- package/dist/testing/opfs-shim.js.map +0 -1
- package/dist/testing/seeds.d.ts +0 -11
- package/dist/testing/seeds.d.ts.map +0 -1
- package/dist/testing/seeds.js +0 -50
- package/dist/testing/seeds.js.map +0 -1
- package/dist/testing/simulator.d.ts.map +0 -1
- package/dist/testing/simulator.js.map +0 -1
- package/dist/testing/sqllogictest.d.ts.map +0 -1
- package/dist/testing/sqllogictest.js.map +0 -1
- package/dist/transactions/index.d.ts.map +0 -1
- package/dist/transactions/index.js.map +0 -1
- package/dist/worker-protocol/index.d.ts.map +0 -1
- package/dist/worker-protocol/index.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** How an application wants the browser to treat origin-level eviction protection. */
|
|
2
|
+
export type OriginPersistencePolicy = "best-effort" | "request" | "required";
|
|
3
|
+
export type OriginPersistenceReason = "already-persisted" | "granted" | "denied" | "unsupported" | "unavailable";
|
|
4
|
+
export interface OriginPersistenceStatus {
|
|
5
|
+
/** The policy that was evaluated. */
|
|
6
|
+
policy: OriginPersistencePolicy;
|
|
7
|
+
/** Whether the browser currently reports this origin as protected from automatic eviction. */
|
|
8
|
+
persisted: boolean;
|
|
9
|
+
/** Whether this call asked the browser to grant persistence. */
|
|
10
|
+
requested: boolean;
|
|
11
|
+
/** Why `persisted` has its current value. */
|
|
12
|
+
reason: OriginPersistenceReason;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The browser declined or could not provide eviction protection required by the application.
|
|
16
|
+
*
|
|
17
|
+
* This is separate from adapter durability. Strict IndexedDB/OPFS commits protect against torn
|
|
18
|
+
* or reordered writes; only the browser can protect an entire origin from quota eviction.
|
|
19
|
+
*/
|
|
20
|
+
export declare class OriginPersistenceRequiredError extends Error {
|
|
21
|
+
readonly name = "OriginPersistenceRequiredError";
|
|
22
|
+
}
|
|
23
|
+
interface PersistenceStorageManager {
|
|
24
|
+
persisted?: () => Promise<boolean>;
|
|
25
|
+
persist?: () => Promise<boolean>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Checks or requests browser-managed protection from whole-origin eviction.
|
|
29
|
+
*
|
|
30
|
+
* Call this from a user gesture before opening a durable store when losing the entire origin is
|
|
31
|
+
* unacceptable. `best-effort` only inspects existing protection, `request` asks when possible,
|
|
32
|
+
* and `required` rejects unless protection is already present or is granted now.
|
|
33
|
+
*
|
|
34
|
+
* The optional storage manager exists for deterministic tests and non-browser wrappers.
|
|
35
|
+
*/
|
|
36
|
+
export declare function ensureOriginPersistence(policy?: OriginPersistencePolicy, storageManager?: PersistenceStorageManager | undefined): Promise<OriginPersistenceStatus>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The browser declined or could not provide eviction protection required by the application.
|
|
3
|
+
*
|
|
4
|
+
* This is separate from adapter durability. Strict IndexedDB/OPFS commits protect against torn
|
|
5
|
+
* or reordered writes; only the browser can protect an entire origin from quota eviction.
|
|
6
|
+
*/
|
|
7
|
+
export class OriginPersistenceRequiredError extends Error {
|
|
8
|
+
name = "OriginPersistenceRequiredError";
|
|
9
|
+
}
|
|
10
|
+
function defaultStorageManager() {
|
|
11
|
+
if (typeof navigator === "undefined")
|
|
12
|
+
return undefined;
|
|
13
|
+
return navigator.storage;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Checks or requests browser-managed protection from whole-origin eviction.
|
|
17
|
+
*
|
|
18
|
+
* Call this from a user gesture before opening a durable store when losing the entire origin is
|
|
19
|
+
* unacceptable. `best-effort` only inspects existing protection, `request` asks when possible,
|
|
20
|
+
* and `required` rejects unless protection is already present or is granted now.
|
|
21
|
+
*
|
|
22
|
+
* The optional storage manager exists for deterministic tests and non-browser wrappers.
|
|
23
|
+
*/
|
|
24
|
+
export async function ensureOriginPersistence(policy = "request", storageManager = defaultStorageManager()) {
|
|
25
|
+
const runtimePolicy = policy;
|
|
26
|
+
if (runtimePolicy !== "best-effort" &&
|
|
27
|
+
runtimePolicy !== "request" &&
|
|
28
|
+
runtimePolicy !== "required") {
|
|
29
|
+
throw new TypeError(`Unknown origin persistence policy: ${policy}`);
|
|
30
|
+
}
|
|
31
|
+
if (storageManager?.persisted === undefined) {
|
|
32
|
+
if (policy === "required") {
|
|
33
|
+
throw new OriginPersistenceRequiredError("Persistent origin storage is required, but the StorageManager persistence API is unavailable");
|
|
34
|
+
}
|
|
35
|
+
return { policy, persisted: false, requested: false, reason: "unsupported" };
|
|
36
|
+
}
|
|
37
|
+
let alreadyPersisted;
|
|
38
|
+
try {
|
|
39
|
+
alreadyPersisted = await storageManager.persisted();
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
if (policy === "required") {
|
|
43
|
+
throw new OriginPersistenceRequiredError("Persistent origin storage is required, but its status could not be read", { cause: error });
|
|
44
|
+
}
|
|
45
|
+
return { policy, persisted: false, requested: false, reason: "unavailable" };
|
|
46
|
+
}
|
|
47
|
+
if (alreadyPersisted) {
|
|
48
|
+
return { policy, persisted: true, requested: false, reason: "already-persisted" };
|
|
49
|
+
}
|
|
50
|
+
if (policy === "best-effort") {
|
|
51
|
+
return { policy, persisted: false, requested: false, reason: "denied" };
|
|
52
|
+
}
|
|
53
|
+
if (storageManager.persist === undefined) {
|
|
54
|
+
if (policy === "required") {
|
|
55
|
+
throw new OriginPersistenceRequiredError("Persistent origin storage is required, but this browser cannot request it");
|
|
56
|
+
}
|
|
57
|
+
return { policy, persisted: false, requested: false, reason: "unsupported" };
|
|
58
|
+
}
|
|
59
|
+
let granted;
|
|
60
|
+
try {
|
|
61
|
+
granted = await storageManager.persist();
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
if (policy === "required") {
|
|
65
|
+
throw new OriginPersistenceRequiredError("Persistent origin storage is required, but the browser rejected the request", { cause: error });
|
|
66
|
+
}
|
|
67
|
+
return { policy, persisted: false, requested: true, reason: "unavailable" };
|
|
68
|
+
}
|
|
69
|
+
if (!granted && policy === "required") {
|
|
70
|
+
throw new OriginPersistenceRequiredError("Persistent origin storage is required, but the browser denied the request");
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
policy,
|
|
74
|
+
persisted: granted,
|
|
75
|
+
requested: true,
|
|
76
|
+
reason: granted ? "granted" : "denied",
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type SnapshotFrame, type SnapshotFrameFooter, type SnapshotFrameKind, type SnapshotFrameStreamHeader, type SnapshotMetadataItem } from "./types.js";
|
|
2
|
+
export type SnapshotFrameStreamEntry = {
|
|
3
|
+
readonly type: "header";
|
|
4
|
+
readonly header: SnapshotFrameStreamHeader;
|
|
5
|
+
} | {
|
|
6
|
+
readonly type: "frame";
|
|
7
|
+
readonly frame: SnapshotFrame;
|
|
8
|
+
} | {
|
|
9
|
+
readonly type: "footer";
|
|
10
|
+
readonly footer: SnapshotFrameFooter;
|
|
11
|
+
};
|
|
12
|
+
export declare function prepareSnapshotFrameStreamHeader(input: SnapshotFrameStreamHeader): SnapshotFrameStreamHeader;
|
|
13
|
+
export declare function encodeSnapshotFrameStreamHeader(header: SnapshotFrameStreamHeader): Uint8Array;
|
|
14
|
+
export declare function snapshotFrameStreamHeaderIdentity(header: SnapshotFrameStreamHeader): string;
|
|
15
|
+
export declare function snapshotFrameEnvelopeParts(frame: SnapshotFrame): readonly Uint8Array[];
|
|
16
|
+
export declare function extendSnapshotFrameStreamChecksum(checksum: number, parts: readonly Uint8Array[]): number;
|
|
17
|
+
export declare function encodeSnapshotFrameStreamFooter(footer: SnapshotFrameFooter): Uint8Array;
|
|
18
|
+
/** Canonical substrate-independent encoding for one bounded metadata page. */
|
|
19
|
+
export declare function encodeSnapshotMetadataPage(items: readonly unknown[]): Uint8Array;
|
|
20
|
+
export declare function decodeSnapshotMetadataPage(payload: Uint8Array): unknown[];
|
|
21
|
+
/** Decodes and strictly validates one canonical metadata frame before durable staging. */
|
|
22
|
+
export declare function decodeSnapshotMetadataItems(kind: Exclude<SnapshotFrameKind, "block">, payload: Uint8Array): SnapshotMetadataItem[];
|
|
23
|
+
/** Parses and verifies the bounded framed snapshot container without retaining prior frames. */
|
|
24
|
+
export declare function decodeSnapshotFrameStream(source: AsyncIterable<Uint8Array>): AsyncGenerator<SnapshotFrameStreamEntry>;
|