import { Token, Tokens } from 'marked'; import { MarkdownEditorCalloutType, MarkdownEditorLabels } from './types'; /** * GitHub's alerts. A quote at the top level of the document whose first line * is `[!NOTE]`, `[!TIP]`, `[!IMPORTANT]`, `[!WARNING]` or `[!CAUTION]` — in * any case, alone on the line — renders as a callout of that type. * * The marker becomes the callout's title: an atom holding the marker in * `data-md-src`, left where marked read it, first in the quote's first * paragraph and before the line break, so serializing and mapping the block * need nothing new. The rich surface reveals the title like formatting: with * the caret beside it the marker shows, and editing it edits the source. */ export declare const CALLOUT_MARKER: RegExp; export declare const CALLOUT_CLASS = "tx-markdown-editor__callout"; export declare const CALLOUT_TITLE_CLASS = "tx-markdown-editor__callout-title"; export type MarkdownCalloutTitles = Record; export declare function calloutTitles(labels: MarkdownEditorLabels): MarkdownCalloutTitles; export declare function calloutTypeOf(marker: string): MarkdownEditorCalloutType | null; export interface CalloutToken extends Tokens.Blockquote { callout?: MarkdownEditorCalloutType; } /** Marks a quote that opens with a marker. Only top-level blocks are passed in: a nested quote is never a callout. */ export declare function markCallout(token: Token): void;