import type { Anchor } from "../model/types"; import type { Resolved } from "./resolve"; export interface Location { /** "Slide 3 "Title" › Q4 bar", "Section "Pricing" › Link · Start free trial", or why it's missing. */ where: string; element: string | null; /** The data-pipeup-id of the element, or of the marked element it is in (`within`). */ id: string | null; /** `id` names a marked element around this one (a slide, say), not this one. */ within?: boolean; quote: string | null; pin: string | null; } /** * What kind of block `el` is ("Paragraph", "Checkbox", "Switch"), or the author's own name for it. With no kind and * no words, a long thin shape is a "Bar" (a chart's, say) and any other a "Shape"; else it is a "Block". */ export declare function kindOf(el: Element): string; /** * Its own words, cut short: its accessible name where it has one (a field's label, a dropdown's chosen option), else * what it shows ("Offline first Everything…"), the same whether or not the page is showing it. */ export declare function wordsOf(el: Element): string; /** "Paragraph · We will launch…": its kind and its own words, the author's own name for it, or an ask's question. */ export declare function labelOf(el: Element): string; export declare function locate(anchor: Anchor, resolved: Resolved, root: Element): Location; /** Where a comment keeps the edition it was made on, in its view (Pipeup's own key: a page can't report it). */ export declare const EDITION = "pipeup-edition"; /** A view's readable name: its label, else its values joined with " · " (the slide and edition left out); "" for none. */ export declare function viewName(view: Record | undefined): string;