declare module 'wasm-rquickjs:execution' { import type { Readable } from 'node:stream'; export type ExecutionLanguage = 'javascript' | 'typescript'; export type ExecutionOverflowPolicy = 'terminate' | 'truncate'; export type ExecutionSharedOptions = { cwd?: string; argv?: string[]; env?: Record; timeoutMs?: number; maxBytes?: number; overflow?: ExecutionOverflowPolicy; }; export type ExecutionEntryOptions = ExecutionSharedOptions & { entry: string; source?: never; language?: never; }; export type ExecutionSourceOptions = ExecutionSharedOptions & { source: string; entry?: never; language?: ExecutionLanguage; }; export type ExecutionOptions = ExecutionEntryOptions | ExecutionSourceOptions; export type ExecutionStructuredResult = { value: T; overflowed: boolean; }; export type ExecutionResult = ExecutionStructuredResult & { stdout: string; stderr: string; }; export type ExecutionJob = { stdout: Readable; stderr: Readable; result: Promise>; cancel(): void; }; export function startJavaScript(options: ExecutionOptions): ExecutionJob; export function runJavaScript(options: ExecutionOptions): Promise>; const execution: { startJavaScript: typeof startJavaScript; runJavaScript: typeof runJavaScript; }; export default execution; }