import { CompleteResult, RunResult, Runtime } from "./types"; import { WASIFS } from "@runno/wasi"; import { Command } from "./commands"; export declare function headlessRunCode(runtime: Runtime, code: string, stdin?: string): Promise; export declare function headlessRunFS(runtime: Runtime, entryPath: string, fs: WASIFS, stdin?: string): Promise; type PrepareErrorData = { stdin: string; stdout: string; stderr: string; tty: string; fs: WASIFS; exitCode: number; }; export declare class PrepareError extends Error { data: PrepareErrorData; constructor(message: string, data: PrepareErrorData); } export declare function headlessPrepareFS(prepareCommands: Command[], fs: WASIFS): Promise; export {};