import * as Style from './style'; import { CompiledWhitelist } from './whitelist'; export declare type PrecompiledParagraph = string[]; export interface PrecompiledText { paragraphs: PrecompiledParagraph[]; edgeMatter: string; } export interface CompiledEdgeMatter { style: Style.Style; } export declare type Content = string | Span | Link; export interface Span { contents: Content[]; styles: string[]; } export interface Link { url: string; contents: Content[]; } export declare const isSpan: (x: string | Span | Link) => x is Span; export declare const isLink: (x: string | Span | Link) => x is Link; export declare const isString: (x: string | Span | Link) => x is string; export interface CompiledParagraph { contents: Content[]; styles: string[]; } export interface CompiledText { paragraphs: CompiledParagraph[]; styles: Style.Style[]; } export declare const precompile: (data: string) => PrecompiledText; export declare const compileEdgeMatter: (data: string, whitelist: CompiledWhitelist) => CompiledEdgeMatter; export declare const extractLinks: (data: string) => (string | Link)[]; interface ParagraphOptions { links: boolean; } export declare const compileParagraph: (p: PrecompiledParagraph, styleLut: Style.StyleLUT, options: ParagraphOptions) => CompiledParagraph; export declare const isValid: (text: CompiledText, whitelist: CompiledWhitelist) => boolean; export {};