interweave-autolink
Version:
URL, IP, email, and hashtag autolinking support for Interweave.
9 lines • 442 B
TypeScript
import { ChildrenNode, Matcher, MatchResponse, Node } from 'interweave';
import { EmailProps } from './types';
export declare type EmailMatch = Pick<EmailProps, 'email' | 'emailParts'>;
export declare class EmailMatcher extends Matcher<EmailProps> {
replaceWith(children: ChildrenNode, props: EmailProps): Node;
asTag(): string;
match(string: string): MatchResponse<EmailMatch> | null;
}
//# sourceMappingURL=EmailMatcher.d.ts.map