@nocobase/flow-engine
Version:
A standalone flow engine for NocoBase, managing workflows, models, and actions.
34 lines (33 loc) • 1.14 kB
TypeScript
/**
* 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 * as React from 'react';
import { FlowEngineContext } from '../flowContext';
export declare function useDrawer(): (React.JSX.Element | {
open: (config: any, flowContext: FlowEngineContext) => Promise<unknown> & {
type: string;
inputArgs: any;
preventClose: boolean;
destroy: () => void;
update: (newConfig: any) => void;
close: (result?: any, force?: boolean) => void;
Footer: ({ children, ...props }: {
[x: string]: any;
children: any;
}) => any;
Header: ({ ...props }: {
[x: string]: any;
}) => any;
setFooter: (footer: React.ReactNode) => void;
setHeader: (header: {
title?: React.ReactNode;
extra?: React.ReactNode;
}) => void;
navigation: any;
};
})[];