/**
 * 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.
 */
import React, { FC } from 'react';
export declare const KeepAliveProvider: FC<{
    active: boolean;
    parentActive: boolean;
}>;
/**
 * Used on components that don't need KeepAlive context, to improve performance when Context values change
 * @returns
 */
export declare const KeepAliveContextCleaner: FC;
/**
 * Get whether the current page is visible
 * @returns
 */
export declare const useKeepAlive: () => {
    active: boolean;
};
interface KeepAliveProps {
    uid: string;
    children: (uid: string) => React.ReactNode;
}
/**
 * Implements a Vue-like KeepAlive effect
 */
export declare const KeepAlive: FC<KeepAliveProps>;
export {};
