/** * 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 from 'react'; import { FlowContext, FlowEngineContext } from './flowContext'; import { FlowView, FlowViewer } from './views/FlowView'; export declare const FlowReactContext: React.Context; export declare const FlowViewContext: React.Context; export declare function FlowContextProvider(props: { children: React.ReactNode; context: FlowContext; }): React.JSX.Element; export declare const FlowViewContextProvider: React.MemoExoticComponent<(props: { children: React.ReactNode; context: FlowContext; }) => React.JSX.Element>; export declare function useFlowContext(): T; export declare function useFlowViewContext(): T; export declare function useFlowView(): FlowView; /** * Access the `FlowViewer` that opens new drawers / modals / pages (`viewer.drawer({...})`, `viewer.modal({...})`, etc.). This is the counterpart to `useFlowView()`: `useFlowView()` returns the *current* mounted view (use it to close yourself, render Header/Footer slots, etc.), while `useFlowViewer()` returns the surface that lets you open a *new* view from inside any flow-context subtree. */ export declare function useFlowViewer(): FlowViewer;