UNPKG

ecmarkup

Version:

Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.

15 lines (14 loc) 628 B
import type Spec from './Spec'; import type Clause from './Clause'; import type Biblio from './Biblio'; import type { BiblioEntry } from './Biblio'; export declare const NO_CLAUSE_AUTOLINK: Set<string>; export declare const YES_CLAUSE_AUTOLINK: Set<string>; export declare function autolink(node: Node, replacer: RegExp, autolinkmap: AutoLinkMap, clause: Clause | Spec, currentId: string | null, allowSameId: boolean): void; export declare function replacerForNamespace(namespace: string, biblio: Biblio): { replacer: RegExp; autolinkmap: AutoLinkMap; }; export interface AutoLinkMap { [key: string]: BiblioEntry; }