import { Router } from 'vue-router';
/**
 * Remark plugin to autolink URLs in text nodes.
 *
 * @param options - Options for the plugin
 * @param options.autolink - Whether to enable autolinking of URLs
 * @param options.useMarkdown - Whether to use markdown parsing
 * @param options.useExtendedMarkdown - Whether to use extended markdown parsing
 */
export declare function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }: {
    autolink: any;
    useMarkdown: any;
    useExtendedMarkdown: any;
}): (tree: any) => void;
/**
 * Parses a text and returns either an array of text nodes and link nodes or the original text if no links were found.
 *
 * @param text - The text to parse
 */
export declare function parseUrl(text: string): string | (string | Record<string, any>)[];
/**
 * Try to get path for router link from an absolute or relative URL.
 *
 * @param router - VueRouter instance of the router link
 * @param url - absolute URL to parse
 * @return a path that can be used in the router link or null if this URL doesn't match this router config
 * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment
 */
export declare function getRoute(router: Router | null, url: string): string | null;
