export type Tree = { [name: string]: Tree | string | Uint8Array }; export type InputStream = (byteLength: number) => Uint8Array | null; export type OutputStream = (bytes: Uint8Array | null) => void; export type RunOptions = { stdin?: InputStream | null; stdout?: OutputStream | null, stderr?: OutputStream | null, decodeASCII?: boolean }; export type Command = (args?: string[], files?: Tree, options?: RunOptions) => Tree | Promise | undefined; export class Exit extends Error { code: number; files: Tree; } export const runYosys: Command; export const commands: { 'yosys': Command, };