site/node_modules/mathjax-full/js/a11y/complexity.d.ts

20 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { Handler } from '../core/Handler.js';
import { MathDocumentConstructor } from '../core/MathDocument.js';
import { MathML } from '../input/mathml.js';
import { MmlNode } from '../core/MmlTree/MmlNode.js';
import { EnrichedMathItem, EnrichedMathDocument } from './semantic-enrich.js';
export declare type Constructor<T> = new (...args: any[]) => T;
export declare type EMItemC<N, T, D> = Constructor<EnrichedMathItem<N, T, D>>;
export declare type CMItemC<N, T, D> = Constructor<ComplexityMathItem<N, T, D>>;
export declare type EMDocC<N, T, D> = MathDocumentConstructor<EnrichedMathDocument<N, T, D>>;
export declare type CMDocC<N, T, D> = Constructor<ComplexityMathDocument<N, T, D>>;
export interface ComplexityMathItem<N, T, D> extends EnrichedMathItem<N, T, D> {
complexity(document: ComplexityMathDocument<N, T, D>, force?: boolean): void;
}
export declare function ComplexityMathItemMixin<N, T, D, B extends EMItemC<N, T, D>>(BaseMathItem: B, computeComplexity: (node: MmlNode) => void): CMItemC<N, T, D> & B;
export interface ComplexityMathDocument<N, T, D> extends EnrichedMathDocument<N, T, D> {
complexity(): ComplexityMathDocument<N, T, D>;
}
export declare function ComplexityMathDocumentMixin<N, T, D, B extends EMDocC<N, T, D>>(BaseDocument: B): CMDocC<N, T, D> & B;
export declare function ComplexityHandler<N, T, D>(handler: Handler<N, T, D>, MmlJax?: MathML<N, T, D>): Handler<N, T, D>;