UNPKG

microvium

Version:

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

47 lines (46 loc) 2.57 kB
/// <reference types="node" /> import { VisualBufferHTMLContainer, HTMLFormat, BinaryFormat, Format, BinaryData, HTML } from "./visual-buffer"; import { Labelled } from "./binary-region"; export declare const tableContainer: VisualBufferHTMLContainer; export declare const tableRow: <T>(formatValue: (v: T) => string) => HTMLFormat<Labelled<T | undefined>>; declare class HTMLFormats { hexRow: (digits: number, add0x?: boolean, addBaseSubscript?: boolean) => HTMLFormat<Labelled<number | undefined>>; intRow: HTMLFormat<Labelled<number | undefined>>; doubleRow: HTMLFormat<Labelled<number | undefined>>; stringRow: HTMLFormat<Labelled<string | undefined>>; } declare class BinaryFormats { uInt8: BinaryFormat<number>; sInt8: BinaryFormat<number>; uInt16LE: BinaryFormat<number>; sInt16LE: BinaryFormat<number>; uInt32LE: BinaryFormat<number>; sInt32LE: BinaryFormat<number>; doubleLE: BinaryFormat<number>; stringUtf8NT: BinaryFormat<string>; } export interface Preformatted { binary: BinaryData; html: HTML; } export declare const binaryFormats: BinaryFormats; export declare const htmlFormats: HTMLFormats; export declare const uHex8Row: Format<Labelled<number | undefined>>; export declare const uInt8Row: Format<Labelled<number | undefined>>; export declare const sInt8Row: Format<Labelled<number | undefined>>; export declare const uHex16LERow: Format<Labelled<number | undefined>>; export declare const uInt16LERow: Format<Labelled<number | undefined>>; export declare const sInt16LERow: Format<Labelled<number | undefined>>; export declare const uHex32LERow: Format<Labelled<number | undefined>>; export declare const uInt32LERow: Format<Labelled<number | undefined>>; export declare const sInt32LERow: Format<Labelled<number | undefined>>; export declare const doubleLERow: Format<Labelled<number | undefined>>; export declare const stringUtf8NTRow: Format<Labelled<string | undefined>>; export declare const bufferRow: Format<Labelled<Buffer | undefined>>; export declare const paddingRow: Format<Labelled<number | undefined>>; export declare const paddingWithDeletedRow: Format<Labelled<number | undefined>>; export declare const preformatted: (byteCount: number) => Format<Labelled<Preformatted | undefined>>; export declare const preformatted1: Format<Labelled<Preformatted | undefined>>; export declare const preformatted2: Format<Labelled<Preformatted | undefined>>; export declare const preformatted3: Format<Labelled<Preformatted | undefined>>; export {};