import { type ColorMode, type SizeType } from "../../types"; import type { ColorGradientScheme, ColorScheme } from "../../types/colors"; import type { TextNodeProps } from "../../types/components/text"; import type { AppFontsConfig } from "../../types/ui-config"; import { type CSS } from "../../utils/base-utils"; export declare const defaultColor: ColorScheme; /** * Returns the `href` of the markdown link a plain left click landed on, or * `null` when the click should be left alone (modifier keys, non-primary * button, already handled, not on a link). Hosts route these through * `onNavigateToUrl`, since a bare `target="_blank"` anchor is blocked in some * of them (embedded webviews, sandboxed frames). */ export declare function markdownLinkUrlFromClick(event: MouseEvent): string | null; export declare function mapTextColor(colorMode: ColorMode, scheme: ColorGradientScheme): CSS; /** * Generates comprehensive styles for text components by combining text, component and size styles * @param props - Text component properties including font, color, background, spacing etc. * @returns Object containing text inline styles and the appropriate HTML tag to render */ export declare const getTextComponentStyles: (colorMode: ColorMode, props: TextNodeProps, fonts: AppFontsConfig) => string; export declare function getTextWrapperInlineStyles(colorMode: ColorMode, _restProps: Partial, size: SizeType, background_color?: ColorGradientScheme | null): string; export declare function getHtmlFromMarkdown(text?: string): string;