/** * 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 FormInstance, type FormProps } from 'antd'; import React from 'react'; export interface ResourceFormDrawerRenderArgs { form: FormInstance; submitting: boolean; } export interface ResourceFormDrawerProps> { title: React.ReactNode; initialValues?: Partial; form?: FormInstance; formProps?: Omit, 'form' | 'initialValues' | 'children'>; children: React.ReactNode | ((args: ResourceFormDrawerRenderArgs) => React.ReactNode); onSubmit: (values: Values, form: FormInstance) => Promise | void; onSubmitted?: (values: Values) => Promise | void; submitText?: React.ReactNode; cancelText?: React.ReactNode; footer?: React.ReactNode; } /** * Drawer-hosted antd form for settings CRUD pages. The caller owns the API * branch (create/update/etc.); this component only handles form lifecycle, * validation, loading state, and the shared drawer chrome. */ export declare function ResourceFormDrawer>(props: ResourceFormDrawerProps): React.JSX.Element; export default ResourceFormDrawer;