import type { Plugin } from "unified"; export type ExternalLinksOptions = { /** * Predicate to decide whether a URL is external. * * Defaults to absolute http(s) URLs. * * @example * (href) => href.startsWith("https://") && !href.includes("lix.dev") */ isExternal?: (href: string) => boolean; /** * Target attribute to apply to external links. * * @default "_blank" */ target?: string; /** * Rel attribute to apply to external links. * * @default "noopener noreferrer" */ rel?: string; }; /** * Remark plugin that annotates external links so `remark-rehype` emits `target` and `rel`. * * Intended to be used as an opt-in feature from `parse()` or `serializeToHtml()`. * * @example * unified().use(remarkExternalLinks, true) */ export declare const remarkExternalLinks: Plugin<[ ExternalLinksOptions | boolean | undefined ], any>; //# sourceMappingURL=remark-external-links.d.ts.map