ecmarkup
Version:
Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.
30 lines (29 loc) • 754 B
TypeScript
import type { default as Spec, Warning } from '../Spec';
import type { Node as EcmarkdownNode } from 'ecmarkdown';
declare type CollectNodesReturnType = {
success: true;
headers: {
element: Element;
contents: string;
}[];
mainGrammar: {
element: Element;
source: string;
}[];
sdos: {
grammar: Element;
alg: Element;
}[];
earlyErrors: {
grammar: Element;
lists: HTMLUListElement[];
}[];
algorithms: {
element: Element;
tree?: EcmarkdownNode;
}[];
} | {
success: false;
};
export declare function collectNodes(report: (e: Warning) => void, mainSource: string, spec: Spec, document: Document): CollectNodesReturnType;
export {};