/**
 * Matches a bare URL for AutoLink. Adapted from the Lexical playground.
 * Intentionally permissive on path/query so real-world URLs linkify.
 */
export declare const URL_MATCHER: RegExp;
/** Matches a bare email address for AutoLink (rendered as a `mailto:` link). */
export declare const EMAIL_MATCHER: RegExp;
/**
 * Return a safe href for `url`, or `'about:blank'` if it can't be parsed or uses
 * a disallowed scheme. A scheme-less input like `example.com` is treated as
 * `https://example.com`. Use this before writing any user-supplied string into
 * a link's href.
 */
export declare function sanitizeUrl(url: string): string;
/**
 * Whether `url` is a well-formed, safe (http/https/mailto/tel) URL. Used to
 * decide whether an entered link value is acceptable before dispatching the
 * toggle-link command. Shares the {@link SAFE_PROTOCOLS} allowlist with
 * {@link sanitizeUrl} so the two never disagree.
 */
export declare function validateUrl(url: string): boolean;
//# sourceMappingURL=linkUtils.d.ts.map