import type { Link } from '../resource'; /** * Set the link’s target to a new URL. * * Essentially this performs `link.target = target`, but with extra steps: * - If the link is defined by an attribute of an HTML element, the element’s `integrity` attribute * (if any) is removed. (In case the new target has different content, the integrity attribute * could prevent it from being loaded.) * - If the link is defined by an attribute of an HTML element, and `config.rememberOriginalUrls` is * `true`, the attribute’s existing value is preserved in a `data-original-…` attribute. * * Note that modifying a {@link Link}’s target updates the {@link Resource} that * contains the link. * * @param link - The link to modify. * @param target - The link’s new target: a relative or absolute URL. * @param config.rememberOriginalUrls - If true, and the link is defined by an attribute of an HTML * element, the attribute’s existing value is preserved in a `data-original-…` attribute. * * @category Util */ export declare function setLinkTarget(link: Link, target: string, config?: { rememberOriginalUrls?: boolean; }): void;