UNPKG

ecmarkup

Version:

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

23 lines (22 loc) 1.07 kB
import type Spec from './Spec'; import type { Signature } from './Biblio'; import type { Context } from './Context'; import Builder from './Builder'; import type { ParsedHeader } from './header-parser'; export declare const SPECIAL_KINDS_MAP: Map<string, string>; export declare const SPECIAL_KINDS: string[]; export declare function getHeaderSource(header: Element, spec: Spec): string; export declare function extractStructuredHeader(header: Element): Element | null; export default class Clause extends Builder { isAnnex: boolean; isBackMatter: boolean; isNormative: boolean; constructor(spec: Spec, node: HTMLElement, parent: Clause, number: string); canHaveEffect(effectName: string): boolean; static enter({ spec, node, clauseStack, clauseNumberer }: Context): Promise<void>; static exit({ node, spec, clauseStack, inAlg, currentId }: Context): void; getSecnumHTML(): string; static elements: string[]; static linkElements: string[]; } export declare function parsedHeaderToSignature(parsedHeader: ParsedHeader): Signature;