import React from 'react'; import { DrawingID, PluginID } from '@buerli.io/core'; import { MemberParam } from '../../types'; /** * @param drawingId - id of the drawing. * @param update - a function which will be called when user presses "Update" button. * @param params - all params which should be sent to the server. PluginForm validates each of them. * @param validator - smart validation (check https://awv-informatik.atlassian.net/wiki/spaces/CLAS/pages/2428076033/Validation for mor details) * @param autoClose - (optional) if true plugin will closed after update. Default is true. * @param forceUpdateEnabled - if plugin is opened for the recently created feature it contains default values. * User should be able to click "Update" button (clicking on close will remove the feature). Since there is no params changed by the user validator disables "Update" button. * To make "Update" button enabled with default values pass true to forceUpdateEnabled * @returns */ export declare const PluginForm: React.FC<{ drawingId: DrawingID; pluginId: PluginID; update: () => Promise; params: Record>; children?: React.ReactNode; validator?: () => string[]; autoClose?: boolean; forceUpdateEnabled?: boolean; }>;