import React from 'react'; import { type ColorValue, type ViewProps } from 'react-native'; import { type EditorStyleState, type MarkdownEditorHandle, type MarkdownStyle, type MentionTrigger } from './types'; export interface MarkdownEditorProps extends ViewProps { /** Auto-capitalize behavior */ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters'; /** Whether to auto-correct text */ autoCorrect?: boolean; /** Whether to auto-focus on mount */ autoFocus?: boolean; /** Cursor color */ cursorColor?: ColorValue; /** Registered custom HTML-like tag names */ customTags?: Array; /** Initial markdown content */ defaultValue?: string; /** Whether the input is editable */ editable?: boolean; /** Trigger characters that activate mention detection (e.g. ['@', '#', '/']) */ mentionTriggers?: Array; /** Whether the input supports multiple lines */ multiline?: boolean; /** Called when input loses focus */ onBlur?: () => void; /** Called when markdown output changes */ onChangeMarkdown?: (markdown: string) => void; /** Called when selection changes */ onChangeSelection?: (selection: { start: number; end: number; }) => void; /** Called when formatting state at cursor changes */ onChangeState?: (state: EditorStyleState) => void; /** Called when raw text changes */ onChangeText?: (text: string) => void; /** Called when input receives focus */ onFocus?: () => void; /** Called when a URL is detected in text */ onLinkDetected?: (url: string) => void; /** Called on each keystroke after a trigger — update suggestions */ onMentionChange?: (event: { query: string; trigger: MentionTrigger; }) => void; /** Called when mention is cancelled — hide suggestions */ onMentionEnd?: (trigger: MentionTrigger) => void; /** Called when user types a trigger character — show suggestions */ onMentionStart?: (trigger: MentionTrigger) => void; /** Placeholder text */ placeholder?: string; /** Placeholder text color */ placeholderTextColor?: ColorValue; /** Whether scrolling is enabled */ scrollEnabled?: boolean; /** Selection highlight color */ selectionColor?: ColorValue; /** Custom styles for markdown elements */ styles?: MarkdownStyle; } export declare const MarkdownEditor: React.ForwardRefExoticComponent>; //# sourceMappingURL=MarkdownEditor.d.ts.map