export type Tree = { [name: string]: Tree | string | Uint8Array }; export type InputStream = (byteLength: number) => Uint8Array | null; export type OutputStream = (bytes: Uint8Array | null) => void; export type ProgressCallback = (event: { source: object, totalLength: number, doneLength: number }) => void; export type RunOptions = { stdin?: InputStream | null; stdout?: OutputStream | null; stderr?: OutputStream | null; decodeASCII?: boolean; synchronously?: boolean; fetchProgress?: ProgressCallback; }; export type Command = (args?: string[], files?: Tree, options?: RunOptions) => Promise | Tree | undefined; export class Exit extends Error { code: number; files: Tree; } //--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<-------- export const runPrjoxide: Command; export const runNextpnrNexus: Command; export const commands: { 'prjoxide': Command, 'nextpnr-nexus': Command, }; export const version: string;