import { type LinkAttributes } from '.';
type ChangeHandler = (url: string | null, prevUrl: string | null) => void;
interface LinkMatcherResult {
    attributes?: LinkAttributes;
    index: number;
    length: number;
    text: string;
    url: string;
}
export type LinkMatcher = (text: string) => LinkMatcherResult | null;
export declare function createLinkMatcherWithRegExp(regExp: RegExp, urlTransformer?: (text: string) => string): (text: string) => {
    index: number;
    length: number;
    text: string;
    url: string;
} | null;
export declare function AutoLinkPlugin({ matchers, onChange, }: {
    matchers: LinkMatcher[];
    onChange?: ChangeHandler;
}): React.JSX.Element | null;
export {};
