export const CUSTOM_SELECTORS: any[]; export const customObserver: Map; export function handleCustomType(node: Element): Promise; export function define(type: string, options: CustomOptions): void; export function whenDefined(type: string): Promise; /** * custom configuration */ export type Runtime = { /** * the bootstrapped interpreter */ interpreter: object; /** * an XWorker constructor that defaults to same interpreter on the Worker. */ XWorker: (url: string, options?: object) => Worker; /** * a cloned config used to bootstrap the interpreter */ config: object; /** * an utility to run code within the interpreter */ run: (code: string) => any; /** * an utility to run code asynchronously within the interpreter */ runAsync: (code: string) => Promise; /** * an utility to write a file in the virtual FS, if available */ writeFile: (path: string, data: ArrayBuffer) => void; }; /** * custom configuration */ export type CustomOptions = { /** * the interpreter to use */ interpreter: "pyodide" | "micropython" | "ruby-wasm-wasi" | "wasmoon"; /** * the optional interpreter version to use */ version?: string; /** * the optional config to use within such interpreter */ config?: string; };