Skip to content
File

Blob: src/pyodide/types/artifacts.d.ts

typescript27 lines
1// Copyright (c) 2026 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5declare namespace ArtifactBundler {
6 type SnapshotType = 'baseline' | 'dedicated' | 'package';
7 type MemorySnapshotResult = {
8 snapshot: Uint8Array;
9 importedModulesList: string[];
10 snapshotType: SnapshotType;
11 };
12 
13 const hasMemorySnapshot: () => boolean;
14 const isEwValidating: () => boolean;
15 const isDynamicWorker: () => boolean;
16 const readMemorySnapshot: (
17 offset: number,
18 buf: Uint32Array | Uint8Array
19 ) => void;
20 const getMemorySnapshotSize: () => number;
21 const disposeMemorySnapshot: () => void;
22 const storeMemorySnapshot: (snap: MemorySnapshotResult) => void;
23 const getPackage: (path: string) => Reader | null;
24}
25 
26export default ArtifactBundler;