export type removeSourceUrlType = { /** * The link url, possibly with the source url. */ link: string; /** * The backend url. */ backendUrl: string; /** * The public url. Defaults to '/'. */ publicUrl?: string; /** * If the removal of source url from link leads to a empty string, * this setting control whether a '/' should be returned or the empty string */ nonEmptyLink?: boolean; }; /** * Make the link relative if it belongs to the backend, to force client-side * navigation. * * Inspired on the Frontity implementation * * @see https://github.com/frontity/frontity/blob/dev/packages/components/link/utils.ts * * @param props.link The link that might contain the sourceUrl * @param props.backendUrl The source url * @param props.publicUrl The public url * @param props.nonEmptyLinks If the removal of source url from link leads to a empty string, * this setting control whether a '/' should be returned or the empty string * * @returns The URL without the Source URL. */ export declare function removeSourceUrl({ link: originalLink, backendUrl, publicUrl, nonEmptyLink, }: removeSourceUrlType): string;