UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

19 lines (18 loc) 869 B
import type { Program } from 'estree'; import type { IOptions, Result } from '..'; import type { Context, RecursivePartial, Variant } from '../types'; /** * Small function to determine the variant to be used * by a program, as both context and options can have * a variant. The variant provided in options will * have precedence over the variant provided in context. * * @param context The context of the program. * @param options Options to be used when * running the program. * * @returns The variant that the program is to be run in */ export declare function determineVariant(context: Context, options: RecursivePartial<IOptions>): Variant; export declare function determineExecutionMethod(theOptions: IOptions, context: Context, program: Program, verboseErrors: boolean): void; export declare const resolvedErrorPromise: Promise<Result>;