/** * The HtmlElementFactory type is needed for typing `HtmlElements`. * a tag name, or a factory creating the (empty) element */ export type HtmlElementFactory = string | (() => HTMLElement); /** * The mapping of the generic element kinds to HTML: a tag name or an element factory. * Every ElementKind has to be mapped, checked by `satisfies`. */ export declare const HtmlElements: { inline: string; block: string; part: string; chapter: string; section: string; subsection: string; subsubsection: string; paragraph: string; subparagraph: string; linebreak: string; par: string; listitem: string; term: string; description: string; verbatim: string; verb: () => HTMLElement; titlepage: () => HTMLDivElement; title: () => HTMLDivElement; author: () => HTMLDivElement; date: () => HTMLDivElement; abstract: () => HTMLDivElement; list: () => HTMLDivElement; unorderedList: () => HTMLUListElement; orderedList: () => HTMLOListElement; descriptionList: () => HTMLDListElement; itemlabel: () => HTMLSpanElement; quote: () => HTMLDivElement; quotation: () => HTMLDivElement; verse: () => HTMLDivElement; }; /** * HTML element factories that need arguments or are only used internally by the HtmlGenerator; * these are not part of the generic ElementKinds, the Generator offers dedicated create*() methods. */ export declare const HtmlFactories: { multicols: (c: number) => () => HTMLDivElement; anchor: (id: string) => () => HTMLAnchorElement; link: (url?: string) => () => HTMLAnchorElement; image: (width: number, height: number, url: string) => () => HTMLImageElement; marginPar: (margin: string) => () => HTMLDivElement; picture: () => HTMLSpanElement; pictureCanvas: () => HTMLSpanElement; };