type RedirectOptions = { openInNewTab?: boolean; name?: string; }; type TargetType = { open: (url?: string | URL | undefined, target?: string | undefined, features?: string | undefined) => void; location: { assign: (url: string | URL) => void; }; }; /** * Redirect to url supplied in the parameters * @param {TargetType} target window object on which to act * @param {string} url link to redirect to * @param {RedirectOptions} options */ export declare const redirect: (target: TargetType, url: string, options?: RedirectOptions) => void; /** * Redirect to url saved in a cookie * @param {TargetType} target window object on which to act * @param {string} defaultLink link to redirect to if no url for redirection is defined * @param {RedirectOptions} options * @returns {false|void} return false if no redirection has been triggered */ export declare const redirectToSavedUrl: (target: TargetType, defaultLink?: string, options?: RedirectOptions) => false | void; /** * @deprecated Use `buildPdfViewerURL` instead * Return a link to display a pdf, embedded in a custom pdf viewer if provided * @param assetsUrl assets url where the pdf viewer is hosted * @returns embedded link to display a pdf */ export declare const buildPdfViewerLink: (assetsUrl?: string) => string; /** * Returns the URL object of the resource that hosts a pdf viewer * If url contains protocol and path, it needs to end with a trailing * slash otherwise the last segment will be dropped * @param assetsUrl assets url where the pdf viewer is hosted * @returns embedded link to display a pdf */ export declare const buildPdfViewerURL: (assetsUrl?: string) => URL | undefined; export {};