export interface MarkdownSegment {
    text: string;
    bold: boolean;
    italic: boolean;
    strikethrough: boolean;
    fraction?: {
        numerator: string;
        denominator: string;
    };
    link?: string;
    color?: string;
    font?: string;
    underline?: boolean;
}
export declare function get_variant_font(family: string, bold: boolean, italic: boolean): string;
export declare function parse_inline_markdown(text: string): MarkdownSegment[];
type VariantResolver = (base: string, bold: boolean, italic: boolean) => string;
export declare function render_markdown_inline(pdoc: any, content: string, base_font: string, font_size: number, text_opts: Record<string, any>, position?: {
    x: number;
    y: number;
}, variant?: VariantResolver): void;
export declare function render_segments(pdoc: any, segments: MarkdownSegment[], base_font: string, font_size: number, text_opts: Record<string, any>, position?: {
    x: number;
    y: number;
}, base_color?: string, variant?: VariantResolver): void;
export {};
