import { PathLike } from './pathLike'; import { ProcessorContext } from './processorContext'; export interface JavascriptProvider { require: Record; runScript?(source: string, options: { fileName: PathLike; lineOffset: number; context: Record; require?: Record; deleteVariable?: (key: string) => void; }): Promise>; evalExpression(expression: string, context: ProcessorContext, scriptContext?: Record): Promise; loadModule?(request: string, context: string, force?: boolean): T | undefined; isAllowedKeyword?(keyword: string): boolean; }