mml3.d.ts 616 B

123456789101112131415
  1. import { MathItem } from '../../../core/MathItem.js';
  2. import { MathDocument } from '../../../core/MathDocument.js';
  3. import { Handler } from '../../../core/Handler.js';
  4. export declare type FILTERDATA<N, T, D> = {
  5. math: MathItem<N, T, D>;
  6. document: MathDocument<N, T, D>;
  7. data: N;
  8. };
  9. export declare class Mml3<N, T, D> {
  10. static XSLT: string;
  11. protected transform: (node: N, doc: MathDocument<N, T, D>) => N;
  12. constructor(document: MathDocument<N, T, D>);
  13. mmlFilter(args: FILTERDATA<N, T, D>): void;
  14. }
  15. export declare function Mml3Handler<N, T, D>(handler: Handler<N, T, D>): Handler<N, T, D>;