/**
 * 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 { type FlowEngine } from '@nocobase/flow-engine';
import React from 'react';
import { type BaseLayoutModel } from '../admin-shell/BaseLayoutModel';
export type LegacyPageBehavior = 'redirect' | 'notFound' | 'bridge';
export type FlowRouteProps = {
    pageUid?: string;
    active?: boolean;
    getLayoutModel?: (flowEngine: FlowEngine) => BaseLayoutModel | undefined;
    legacyPageBehavior?: LegacyPageBehavior;
};
/**
 * 管理后台动态页面路由组件。
 *
 * 负责读取当前路由页面 UID，并把页面生命周期桥接到 AdminLayout host model。
 * 设备变量通常由 PluginFlowEngine 共享初始化提供；独立渲染时会在挂载后补充注册。
 *
 * @example
 * ```tsx
 * <Route path="/admin/:name" element={<FlowRoute />} />
 * ```
 *
 * @returns {JSX.Element} 当前动态页面的布局挂载节点
 * @throws {Error} 当缺少 `route.params.name` 时抛出异常
 */
declare const FlowRoute: {
    (props?: FlowRouteProps): React.JSX.Element;
    displayName: string;
};
export default FlowRoute;
