/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
export declare function completeURL(url: string, origin?: string): string;
export declare function handleLinkNavigation(options: {
    link: string;
    openInNewWindow?: boolean;
    router: {
        navigate: (to: string, options?: {
            replace?: boolean;
        }) => void;
    };
    isExternalLink: boolean;
    setLocationHref?: (url: string) => void;
    openWindow?: (url?: string, target?: string) => Window | null;
}): void;
/**
 * 判断 Link 导航后是否需要销毁当前视图
 * @param options 判定参数
 * @param options.openInNewWindow 是否新窗口打开
 * @param options.isExternalLink 是否外部链接
 * @param options.viewType 当前视图类型
 * @returns 是否应销毁当前视图
 */
export declare function shouldDestroyViewAfterLinkNavigation(options: {
    openInNewWindow?: boolean;
    isExternalLink: boolean;
    viewType?: string;
}): boolean;
