UNPKG

microvium

Version:

A compact, embeddable scripting engine for microcontrollers for executing small scripts written in a subset of JavaScript.

19 lines (18 loc) 796 B
import * as IL from './il'; import { mvm_Value } from './runtime-types'; import { Future } from './binary-region'; import { HTML } from './visual-buffer'; import { SnapshotClass } from './snapshot'; import { SnapshotIL } from './snapshot-il'; export declare function encodeSnapshot(snapshot: SnapshotIL, generateDebugHTML: boolean, generateSourceMap: boolean): { snapshot: SnapshotClass; html?: HTML; }; declare type MemoryRegionID = 'bytecode' | 'gc' | 'globals'; export declare type Referenceable = { debugName: string; getPointer: (sourceRegion: MemoryRegionID, debugName: string) => Future<mvm_Value>; offset: Future<number>; }; export declare function programAddressToKey({ funcId, blockId, operationIndex }: IL.ProgramAddressValue): string; export {};