UNPKG

628 BTypeScriptView Raw
1import type Spec from './Spec';
2import type Clause from './Clause';
3import type Biblio from './Biblio';
4import type { BiblioEntry } from './Biblio';
5export declare const NO_CLAUSE_AUTOLINK: Set<string>;
6export declare const YES_CLAUSE_AUTOLINK: Set<string>;
7export declare function autolink(node: Node, replacer: RegExp, autolinkmap: AutoLinkMap, clause: Clause | Spec, currentId: string | null, allowSameId: boolean): void;
8export declare function replacerForNamespace(namespace: string, biblio: Biblio): {
9 replacer: RegExp;
10 autolinkmap: AutoLinkMap;
11};
12export interface AutoLinkMap {
13 [key: string]: BiblioEntry;
14}