import React from 'react'; import { TextStyle, StyleProp } from 'react-native'; export type LinkType = 'url' | 'email' | 'phone' | 'mention' | 'hashtag'; export interface ParsedLink { type: LinkType; text: string; url: string; index: number; length: number; } export interface LinkMatcher { type: LinkType; pattern: RegExp; /** * Character class the match must NOT be preceded by. Portable stand-in for a * lookbehind assertion `(? string; getLinkText?: (text: string) => string; baseUrl?: string; style?: StyleProp; renderLink?: (text: string, url: string, index: number, type: LinkType) => React.ReactNode; onPress?: (url: string, type: LinkType) => void; } interface LinkParserProps { text: string; matchers?: LinkMatcher[]; email?: boolean; phone?: boolean; url?: boolean; hashtag?: boolean; mention?: boolean; hashtagUrl?: string; mentionUrl?: string; linkStyle?: StyleProp; onPress?: (url: string, type: LinkType) => void; stripPrefix?: boolean; textStyle?: StyleProp; TextComponent?: React.ComponentType; } declare function LinkParserComponent({ text, matchers: customMatchers, email, phone, url, hashtag, mention, hashtagUrl, mentionUrl, linkStyle, onPress, stripPrefix, textStyle, TextComponent, }: LinkParserProps): React.ReactElement; export declare const LinkParser: React.MemoExoticComponent; export {}; //# sourceMappingURL=linkParser.d.ts.map