import type { PdfJsEngine, PdfJsEvent } from './pdf-js-engine.js'; export interface PdfJavaScriptEngineOptions { getFieldValue?: (name: string) => string; } /** * Default JavaScript engine that executes PDF JS actions via `new Function()`. * * **Security note:** This engine runs PDF-sourced JavaScript with access to the * ambient JS environment (e.g. `globalThis`, constructors, network APIs). It is * NOT sandboxed and should only be used with trusted PDF documents. For untrusted * documents, provide your own `PdfJsEngine` implementation that evaluates code * in an isolated context (e.g. Node `vm`, a dedicated realm, or a Web Worker). */ export declare class PdfJavaScriptEngine implements PdfJsEngine { private _getFieldValue?; constructor(options?: PdfJavaScriptEngineOptions); execute(code: string, event: PdfJsEvent): void; }