import { CommonProps, Refable, type Styleable } from "@trackunit/react-components"; import { ReactElement, ReactNode } from "react"; export interface WidgetEditBodyProps extends CommonProps, Refable, Styleable { /** * Child elements to render in the body */ children: ReactNode | null; /** * Function to cancel and close the edit mode */ onCancel: () => void; /** * Function to save and close the edit mode */ onSave: () => void | Promise; /** * Whether the save button should be disabled */ saveEditModeDisabled?: boolean; /** * Title of the dialog, if not provided, the default title: "Configure" will be used */ title?: string; } /** * The WidgetEditBody component should be used to edit a Widget. This will create a centered dialog with a header, body and footer. * The footer will have a cancel and save button. * * @summary For editing a Widget. * @param {WidgetEditBodyProps} props - The props for the WidgetEditBody component * @returns {ReactNode} WidgetEditBody component */ export declare const WidgetEditBody: ({ children, "data-testid": dataTestId, className, onCancel, onSave, saveEditModeDisabled, title, ref, style, }: WidgetEditBodyProps) => ReactElement;