import * as saxonJSRuntime from 'saxon-js'; export interface ISaxonJSCompileOptions { stylesheetText: string; warnings?: string; [key: string]: unknown; } export interface ISaxonJSTransformOptions { stylesheetInternal?: unknown; sourceText: string; destination?: string; stylesheetParams?: Record; [key: string]: unknown; } export interface ISaxonJSTransformResult { principalResult: string; [key: string]: unknown; } export interface ISaxonJSModule { compile(options: ISaxonJSCompileOptions): Promise; transform(options: ISaxonJSTransformOptions): Promise; [key: string]: unknown; } export const SaxonJS: ISaxonJSModule = saxonJSRuntime as unknown as ISaxonJSModule;