import { type StyleProp, type ViewProps } from 'react-native'; import { type ImagePressEvent, type LinkPressEvent, type MarkdownBaseStyle, type MarkdownImageData, type MarkdownStyle, type MentionPressEvent, type TaskListItemPressEvent } from './types'; export interface MarkdownProps extends Omit { /** Markdown string to render */ children: string; /** Registered custom HTML-like tag names */ customTags?: Array; /** Pre-supplied metadata for block images in the markdown. If the * renderer encounters a `![alt](url)` whose url matches one of * these entries, it reserves the supplied width / height during * layout so the image doesn't push content around when it * finishes loading. Entries for URLs that don't appear in the * markdown are ignored. Any image not in this array still loads * normally and the layout shifts once the natural size is known. */ images?: ReadonlyArray; /** Called when a block image is tapped. `width` / `height` are the * best-known natural dimensions at the time of the tap: the * entry from the `images` prop if present, otherwise the loaded * image's natural size, otherwise a fallback. */ onImagePress?: (event: ImagePressEvent) => void; /** Called when a link is long pressed */ onLinkLongPress?: (event: LinkPressEvent) => void; /** Called when a link is pressed */ onLinkPress?: (event: LinkPressEvent) => void; /** Called when a mention is pressed */ onMentionPress?: (event: MentionPressEvent) => void; /** Called when a task list checkbox is pressed */ onTaskListItemPress?: (event: TaskListItemPressEvent) => void; /** Style applied to the markdown container. Block-view props * (background, border, radius, margin, padding, width / height) * apply to the outer container; `gap` sets the vertical spacing * between top-level blocks. A reduced subset of text props — * `color`, `fontFamily`, `fontSize`, `fontStyle`, `fontWeight`, * `lineHeight`, `textAlign` — cascade down to every block. Other * text styling should be set on the per-element key in `styles` * instead. */ style?: StyleProp; /** Custom styles for markdown elements */ styles?: MarkdownStyle; } export declare function Markdown({ children, styles: markdownStyles, customTags, images, style, onImagePress, onLinkPress, onLinkLongPress, onMentionPress, onTaskListItemPress, ...viewProps }: MarkdownProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Markdown.d.ts.map